-
Notifications
You must be signed in to change notification settings - Fork 62
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
Keep names in smtlib2 format #1144
Comments
Same request for the
|
The code that chooses the "user" variable names for SBV is in the saw-script/saw-core-sbv/src/Verifier/SAW/Simulator/SBV.hs Lines 675 to 698 in 7b8c134
Right now, function
Anyway, I think this is a good idea, and we should go ahead and try to implement it. |
One thing we'll need to worry about when generating these names: We need to ensure that all the names we use are distinct; otherwise we might have problems trying to obtain counterexample models. This means that we will need to have an operation for "freshening" a name, generating a unique variant in the case that a desired name is already in use. |
With #1279, we can now do an
So I just kept the sequentially-numbered |
May I suggest a prefix of |
Sure, we could change from |
I see. If it's not possible to ensure the mapping is accurate, its probably better not to try -- a partial solution would likely confuse. |
It would be nice (for offline solving) if the offline format (smtlib2) kept variable names. Instead it references them with
x#
in a comment that says , for example; tracks user variable "x0"
. Can the comment also include the user-provided variable name? I'm ambivalent to replacings#
with the actual variable name. The comment is good enough for me, so long as the format of the string is reliable (for parsing by some other tool).The text was updated successfully, but these errors were encountered: