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

Resetting the symbolic values #88

Closed
karthiv opened this issue Nov 13, 2023 · 2 comments
Closed

Resetting the symbolic values #88

karthiv opened this issue Nov 13, 2023 · 2 comments

Comments

@karthiv
Copy link

karthiv commented Nov 13, 2023

Is there any way to reset the symbolic values along the path - chosen during execution?

If I have to model Input in a cycle, how to take different values of i - during each iteration?

while(true){
int i = takeinput();
}

@yannicnoller
Copy link
Member

Hi @karthiv! I am not sure whether I understand your issue correctly, but what you can do is to add new symbolic values at runtime, e.g.,

int N = 10;
int a[] = new int[N];
for (int i = 0; i < N; i++) {
   a[i] = Debug.makeSymbolicInteger("sym_" + i);
}

@karthiv
Copy link
Author

karthiv commented Nov 17, 2023 via email

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

No branches or pull requests

2 participants