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

Added fix and test to term translation #367

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rachelcleaveland
Copy link

Now handles escape sequences in string literals and extra quotations. Bug fix for #365

if (val.length() > 1 && val.at(0) == '\"') {
new_val = new_val.substr(1,new_val.length()-2);
}
return solver->make_term(new_val, true, sort);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand this fix. It looks like it just strips the double-quote character from the front of the string and whatever character is at the end of the string. Shouldn't you check whether the last character is '"' too? And what about escape characters in the middle?

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