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

Eldarica misses to emit a parser error #60

Open
kensingRichardt opened this issue Jul 31, 2024 · 1 comment
Open

Eldarica misses to emit a parser error #60

kensingRichardt opened this issue Jul 31, 2024 · 1 comment

Comments

@kensingRichardt
Copy link

Hello everyone,

it seems that eldarica's parser misses to report an error for the following SMT-Code:

(declare-fun p ((Array Int Bool)) Bool)

(assert
  (p
    (store ((as const (Array Int Bool)) false) 1 3)
  )
)

The assertion is not well-sorted, i.e. we store in an array of type Bool an Int value. However eldarica outputs

$ ~/eldarica/eld -assert  test.smt2 
sat
@pruemmer
Copy link
Collaborator

pruemmer commented Aug 2, 2024

Thank you for the report; I'm marking this issue as an improvement of the front-end, to be taken care of at some point. We are aware that there are some cases, including this one, in which the parser accepts ill-typed formulas, and Eldarica will happily solve them. This is a bug, but not a very serious one, since even the ill-typed formula makes perfect sense in the internal representation of Eldarica, where Bool is encoded as Int.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants