我已经使用 (ML) z3 绑定一段时间了,API 函数
val mk_distinct : context -> ast array -> ast
Run Code Online (Sandbox Code Playgroud)
多年来一直忠实服务。我现在尝试切换到 SMTLIB2 界面,但我发现该distinct命令是unsupported. 例如,查询:
(declare-fun x () Int)
(declare-fun y () Int)
(distinct x y)
(assert (= x y))
(check-sat)
Run Code Online (Sandbox Code Playgroud)
产生响应:
unsupported
; distinct
sat
Run Code Online (Sandbox Code Playgroud)
在网络演示上。有一些解决方法吗?
谢谢!
兰吉特。
您应该使用(assert (distinct x y))而不是(distinct x y). 以下是更新示例的链接: http: //rise4fun.com/Z3/uVrX
| 归档时间: |
|
| 查看次数: |
550 次 |
| 最近记录: |