Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Parser bug in get-value #42

Open
BrunoDutertre opened this issue May 26, 2022 · 0 comments
Open

Parser bug in get-value #42

BrunoDutertre opened this issue May 26, 2022 · 0 comments

Comments

@BrunoDutertre
Copy link

Hi,

We've just found a bug in your parser related to the get-value command.
The SMT-LIB syntax for get-value is

(get-value ( <terms>+ ))

(cf. SMT-LIB 2.6 page 45).

Your rule in get-value in parser.rs is missing the inner parentheses:

    command ::= LeftParen GetValue terms(xs) RightParen { extra.0.visit_get_value(xs)? }

It should be like this instead:

    command ::= LeftParen GetValue LeftParen terms(xs) RightParen RightParen { extra.0.visit_get_value(xs)? }

Thanks (and thanks for producing this parser!).

Bruno

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

No branches or pull requests

1 participant