Suppose your variable declared was x
:
x = z3.Int("x")
You would get it as a Python int like this:
model[x].as_long()
z3 models are also iterable. Retrieving all parameters in a list comprehension:
[model[v] for v in model]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…