Z3 如何使用Alt Ergo执行以下SMT-LIB代码

Z3 如何使用Alt Ergo执行以下SMT-LIB代码,z3,smt,cvc4,alt-ergo,mathsat,Z3,Smt,Cvc4,Alt Ergo,Mathsat,以下SMT-LIB代码在Z3、MathSat和CVC4中运行时没有问题,但在Alt Ergo中没有运行,请告诉我发生了什么,非常感谢: (set-logic QF_UF) (set-option :incremental true) (set-option :produce-models true) (declare-fun m () Bool) (declare-fun p () Bool) (declare-fun b () Bool) (declare-fun c () Bool) (de

以下SMT-LIB代码在Z3、MathSat和CVC4中运行时没有问题,但在Alt Ergo中没有运行,请告诉我发生了什么,非常感谢:

(set-logic QF_UF)
(set-option :incremental true)
(set-option :produce-models true)
(declare-fun m () Bool)
(declare-fun p () Bool)
(declare-fun b () Bool)
(declare-fun c () Bool)
(declare-fun r () Bool)
(declare-fun al () Bool)
(declare-fun all () Bool)
(declare-fun la () Bool)
(declare-fun lal () Bool)
(declare-fun g () Bool)
(declare-fun a () Bool)
(define-fun conjecture () Bool
(and (= (and (not r) c) m) (= p m) (= b m) (= c (not g)) 
     (= (and (not al) (not all)) r) (= (and la b) al) 
     (= (or al la lal) all) (= (and (not g) p a) la) 
     (= (and (not g) (or la a)) lal)))
(push 1)
(assert (and conjecture (= a false) (= g false)))
(check-sat)
(get-model)
(pop 1)
(push 1)
(assert (and conjecture (= a false) (= g true)))
(check-sat)
(get-model)
(pop 1)
(push 1)
(assert (and conjecture (= a true) (= g true)))
(check-sat)
(get-model)
(pop 1)
(push 1)
(assert (and conjecture (= a true) (= g false)))
(check-sat)
(get-model)

目前,Alt Ergo并没有提供对SMT-2格式的完全支持。特别是,无法识别命令get模型


此外,push和pop命令被忽略。这就是为什么Alt Ergo在给定代码上显示sat、unsat、…、unsat(当删除get model时)。

我尝试了Windows版本的Alt Ergo。它抱怨“获取模型”。一旦我删除了这些行,我得到了未知/未统计的结果,应该是“sat”。我还尝试添加“-sat”命令行参数,但这并没有改变任何事情。奇怪!非常感谢你的回答。您是对的,当删除行“(get model)”时,代码以Alt Ergo方式运行,但生成的输出是错误的:unsat、unsat、unsat、unsat。