【发布时间】:2020-01-29 21:40:53
【问题描述】:
在 z3py 中我想在 Z3py 中使用 Empty 函数 (https://z3prover.github.io/api/html/z3py_8py_source.html#l09944)
我尝试过这样:
s = Solver()
# declare a sequence of integers
iseq = Const('iseq', SeqSort(IntSort()))
solve(Empty(iseq)!= True)
# get a model and print it:
if s.check() == sat:
print (s.model())
但我返回“Z3Exception:传递给 Empty 的非序列、非正则表达式排序”
我也尝试 Empty(iseq) 只支持我一个空序列,但它对我没有用
【问题讨论】: