Turning Off Z3py Print Truncation

家住魔仙堡 提交于 2021-02-11 14:55:24

问题


I need to print an entire Z3 problem to debug it, but when I print it the output is truncated.

from z3 import *
s = Solver()
... Add many assertions to s ...
print(s)

How do I display everything?


回答1:


Try:

set_option(max_args=10000000, max_lines=1000000, max_depth=10000000, max_visited=1000000)

You might want to play with actual values to come up with something that suits your needs.



来源:https://stackoverflow.com/questions/62008181/turning-off-z3py-print-truncation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!