How to run Z3 in Java from SMT-Lib standard?

戏子无情 提交于 2019-12-11 09:03:51

问题


Up to now, I can run Z3 to get solution of equations in cmd on Window:

z3 -smt2 path_smt_lib_file

But how I can run Z3 with SMT-Lib standard input in Java. Thank in advance.


回答1:


You should be able to find all you need in JavaExample.java in the folder examples/java.

Check out the API. In particular, if you want to read an SMT2 file, see Context.parseSMTLIB2File().



来源:https://stackoverflow.com/questions/30568447/how-to-run-z3-in-java-from-smt-lib-standard

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