yices2 icon indicating copy to clipboard operation
yices2 copied to clipboard

Displaying solving results when using --dimacs on trivial sat/unsat formulas

Open rainoftime opened this issue 1 year ago • 1 comments

Hi, I tried running yices-smt2 --dimacs=tmp.cnf test.smt2 on the following trivial formula

(set-logic QF_BV)
(declare-fun x () (_ BitVec 16))
(assert (= x (_ bv1 16)))
(assert (= x (_ bv2 16)))
(check-sat)

Yices does not generate the tmp.cnf file and does not show anything on the screen. Perhaps it is because the formula has already been solved by the word-level preprocessing.

Maybe displaying "sat"/"unsat" result on the screen would be better?

My Yices version is

 % yices-smt2 --version
Yices 2.6.4
Copyright SRI International.
Linked with GMP 6.2.1
Copyright Free Software Foundation, Inc.
Build date: 2023-03-14
Platform: arm-apple-darwin21.6.0 (release)
Revision: unknown

rainoftime avatar Mar 14 '23 12:03 rainoftime

Thanks for reporting this. I can reproduce the issue.

ahmed-irfan avatar Mar 15 '23 17:03 ahmed-irfan