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

Strings are escaped differently in different parts of the constraint writer. #129

Open
BenSpencer opened this issue Jun 8, 2016 · 1 comment

Comments

@BenSpencer
Copy link
Contributor

In the example select-dynamic-form-updates, we have the following pieces in the same constraint file:

...
(declare-const SYMQQQINQQQcountry String)
(assert
  (or
    (= SYMQQQINQQQcountry "?")
    ...
  )
)

(assert (= (= (= SYMQQQINQQQcountry "\?") false) true))
...

Notice the "?" is escaped in the path constraint, but not in the select restriction. This seems like a bug?

@BenSpencer
Copy link
Contributor Author

\? is not a valid escape sequence, so the \ is ignored and CVC4 treats it as a regular ?, so this will not result in a bug. It still seems like we should be consistent though.

http://cvc4.cs.nyu.edu/wiki/Strings#Escape_Sequences_in_String_Constants

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

1 participant