Skip to content

Add dependency analysis features#910

Open
AndreaKe wants to merge 25 commits into
masterfrom
keuscha/dependency_analysis_refactoring
Open

Add dependency analysis features#910
AndreaKe wants to merge 25 commits into
masterfrom
keuscha/dependency_analysis_refactoring

Conversation

@AndreaKe
Copy link
Copy Markdown
Collaborator

Adds features required to support the verification dependency analysis. In particular, each AST node is associated with a dependency type and its source (stored in the info field).

@AndreaKe AndreaKe requested a review from marcoeilers May 19, 2026 13:29
@AndreaKe AndreaKe self-assigned this May 19, 2026
@AndreaKe AndreaKe force-pushed the keuscha/dependency_analysis_refactoring branch from 0f67b51 to e720345 Compare May 26, 2026 13:35
Copy link
Copy Markdown
Contributor

@marcoeilers marcoeilers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment and one question, otherwise LGTM

@@ -0,0 +1,80 @@
package viper.silver.dependencyAnalysis
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add license headers


case t: PExtender => t.translateExp(this)
}
expr.withMeta((expr.pos, MakeInfoPair(AnalysisSourceInfo.createAnalysisSourceInfo(expr), expr.info), expr.errT))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do this at the end or is there a way to do it earlier when expr is created? Because my impression is that withMeta is somehow using reflection and might be pretty expensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants