Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to print Z3 input for debugging #3

Open
wangjwchn opened this issue Jul 26, 2017 · 1 comment
Open

Provide a way to print Z3 input for debugging #3

wangjwchn opened this issue Jul 26, 2017 · 1 comment

Comments

@wangjwchn
Copy link

Hi @gmalecha ,
When I try to modify the coq-smt-check to add some new types, it is hard to debug without seeing the input of Z3. The best I can do is to write it into str_formatter, like this:

Format.fprintf Format.str_formatter "Z3 input\n" ;
RealInstance.write_instance Format.str_formatter inst;
debug (fun _ -> Pp.(str (Format.flush_str_formatter ())));

It can solve my problem to a certain degree, but it 's a temporary solution.
Is there a better way to deal with this?

@gmalecha
Copy link
Owner

At the moment, I don't think so. We can add another flag that outputs the problem (instead of just the result) to the Coq console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants