dafny output as SMT file

余生长醉 提交于 2020-03-05 04:13:26

问题


I successfully wrote a verified Dafny program that given an integer array, returns the length of the longest monotone prefix. The permalink is here. I want to be able to examine the SMT file Dafny used, even though there were no errors. I tried various flag options like:

$ dafny example_longest_monotone.dfy /useSmtOutputFormat /printModelToFile:smt_file.smt

But none seem to work? Am I wrong thinking that there must be some underlying SMT query that returned unsat in the case where Dafny succeeds?


回答1:


The command line flag to output the prover input is /proverLog:<file>.

You can also print the Boogie file that Dafny produces using /print:<file>.



来源:https://stackoverflow.com/questions/57025807/dafny-output-as-smt-file

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