【问题标题】:How to run the following SMT-LIB code using Alt-Ergo如何使用 Alt-Ergo 运行以下 SMT-LIB 代码
【发布时间】:2013-12-16 04:13:35
【问题描述】:

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

(set-logic QF_LIA)
(set-option :interactive-mode true) 
(set-option :incremental true)
(declare-fun w () Int)
(declare-fun x () Int)
(declare-fun y () Int)
(declare-fun z () Int)
(assert (> x y))
(assert (> y z))
(push 1)
(assert (> z x))
(check-sat)
(pop 1)
(get-info :all-statistics)
(push 1)
(assert (= x w))
(check-sat)
(get-assertions)
(exit)

在线运行这个例子here

  1. 在 Z3 中,会生成消息 unsupported ; :incremental,但这不会改变计算并获得正确的答案。

  2. 在 mathsat 中,会生成一些消息 unsupported,但会显示正确答案。

  3. 在Cvc4中代码执行没有问题,得到正确答案。

  4. 在 Alt-Ergo 中,代码在没有消息的情况下执行,但会生成错误答案 unsat(正确答案是:unsat, sat)。

【问题讨论】:

标签: z3 cvc4 alt-ergo


【解决方案1】:

关于 Alt-Ergo 和 SMT-LIB2,请考虑在此处阅读您之前帖子之一的答案:How to execute the following SMT-LIB code using Alt-Ergo

【讨论】:

  • 谢谢,现在我明白为什么 alt-ergo 在这个例子中失败了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-08-10
  • 1970-01-01
  • 2018-09-22
  • 2020-01-13
  • 1970-01-01
  • 2015-06-15
  • 2015-05-02
相关资源
最近更新 更多