【发布时间】:2018-06-11 15:01:25
【问题描述】:
我正在尝试使用 Z3 扩展:muZ 遵循本教程:https://rise4fun.com/Z3/tutorial/fixedpoints。
如本教程中所标记,接受三种不同的基于文本的输入格式。基本数据记录是这些可接受的格式之一。
我有教程中指出的这种形式的程序:
Z 64
P0(x: Z) input
Gt0(x : Z, y : Z) input
R(x : Z) printtuples
S(x : Z) printtuples
Gt(x : Z, y : Z) printtuples
Gt(x,y) :- Gt0(x,y).
Gt(x,y) :- Gt(x,z), Gt(z,y).
R(x) :- Gt(x,_).
S(x) :- Gt(x,x0), Gt0(x,y), Gt0(y,z), P0(z).
Gt0("a","b").
Gt0("b","c").
Gt0("c","d").
Gt0("a1","b").
Gt0("b","a1").
Gt0("d","d1").
Gt0("d1","d").
P0("a1").
如何使用 Z3Py(或 Z3)解析这些程序。
【问题讨论】: