Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializers cannot use other global vars in c frontend #266

Open
leventeBajczi opened this issue Apr 3, 2024 · 0 comments
Open

Initializers cannot use other global vars in c frontend #266

leventeBajczi opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
xcfa Issue is XCFA specific (not core or XSTS or other formalisms)

Comments

@leventeBajczi
Copy link
Contributor

Example: /sv-benchmarks/c/hardness-nfm22/hardness_variablewrapping_wrapper-p_file-0.i

double var_1_1 = 25.8;
double* var_1_1_Pointer = &(var_1_1);

throws

java.lang.RuntimeException: No such variable: var_1_1
	at hu.bme.mit.theta.frontend.transformation.grammar.expression.ExpressionVisitor.getVar(ExpressionVisitor.java:115)
@AdamZsofi AdamZsofi added the xcfa Issue is XCFA specific (not core or XSTS or other formalisms) label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xcfa Issue is XCFA specific (not core or XSTS or other formalisms)
Projects
None yet
Development

No branches or pull requests

2 participants