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

SMT-LIB: quoted symbols ar treated as distinct symbols #58

Closed
hansjoergschurr opened this issue Mar 24, 2021 · 1 comment · Fixed by #59
Closed

SMT-LIB: quoted symbols ar treated as distinct symbols #58

hansjoergschurr opened this issue Mar 24, 2021 · 1 comment · Fixed by #59

Comments

@hansjoergschurr
Copy link
Contributor

In SMT-LIB symbols can be quoted by enclosing them in |, e.g., |A|. According to the SMT-LIB standard (3.1 Symbols Page 23) a quoted and an unquoted symbol is the same symbol:

Following Common Lisp’s conventions,enclosing a simple symbol in vertical bars does not produce a new symbol. This means for instance that abc and |abc| are the same symbol.

Dolmen, however, does not follow this convention and the following SMT-LIB problem produces an error:

(set-logic QF_UF)
(declare-sort S 0)
(declare-const |A| S)
(declare-fun f (S) Bool)
(assert (not (f A)))
(check-sat)
@Gbury
Copy link
Owner

Gbury commented Mar 24, 2021

Good catch ! I'm working on a fix

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 a pull request may close this issue.

2 participants