-
Notifications
You must be signed in to change notification settings - Fork 63
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
ambiguous variable names in print_goal #869
Comments
For Pi-bound or lambda-bound variables, the saw-core pretty printer adds suffixes to prevent name clashes. On the other hand, for We're planning to do some redesign of name handling in saw-core very soon (GaloisInc/saw-core#84) and this problem should be taken care of as part of that effort. |
We've made a bunch of changes to name handling in saw-core in the last few months, so we need to revisit this and see if it's still a problem. |
On a recent (May 2) build, this still prints two indistinguishable names |
I found the source of the bug, in function saw-script/src/SAWScript/Crucible/LLVM/Override.hs Lines 701 to 714 in 2e4fc06
This function is called whenever you apply an override that uses So here's the problem: When To protect against this kind of problem in the future, we should probably remove the low-level |
I think removing |
For now I think I'll fix the problem by rewriting |
When printing out proof goals, some confusion can arise if a function with a postcondition is called more than once. For example, with this simple C code
and this SAWscript
we get this output:
It can be seen that there are two different variable called
x'
. Here it is not too hard to work out which is which, but in larger proof goals it can be quite difficult.The text was updated successfully, but these errors were encountered: