smt2utils icon indicating copy to clipboard operation
smt2utils copied to clipboard

Parser bug in get-value

Open BrunoDutertre opened this issue 2 years ago • 0 comments

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

BrunoDutertre avatar May 26 '22 00:05 BrunoDutertre