smtlib2 parsing bug

51 views
Skip to first unread message

Edward Schwartz

unread,
Feb 12, 2013, 5:27:12 PM2/12/13
to stp-users
Hi,

I think stp has a bug when parsing let expressions in smtlib2
benchmarks. Here is a triggering test input:

(set-logic QF_ABV)
(set-info :smt-lib-version 2.0)

(assert (let ((?foo (let ((?foo2 (_ bv1 1))) ?foo2))) (= ?foo (_ bv1 1))))
(check-sat)
(exit)

In smtlib1, let x = e in <term> is not allowed. It is allowed in
smtlib2, however. It looks like stp's smtlib2 parser was derived from
the smtlib1 parser, and inherited the wrong policy.

I am attaching a patch that changes the parser. It seems to work, but
I put little effort into making sure it is the right way to fix it.

Thanks,

Ed
letterm.patch

Ryan Govostes

unread,
Apr 11, 2013, 2:27:54 AM4/11/13
to stp-...@googlegroups.com, edm...@cmu.edu
It doesn't look like this has yet been checked in. Is anyone reviewing patches on this list?
Reply all
Reply to author
Forward
0 new messages