k-legacy icon indicating copy to clipboard operation
k-legacy copied to clipboard

Enormous amount of output when missing SMTLib translation running `krun --prove`

Open ehildenb opened this issue 7 years ago • 3 comments

https://github.com/kframework/evm-semantics/issues/95

As demonstrated there, krun --prove generates an enormous amount of (highly redundant) output sometimes when Z3 translations are not present.

Is there a way we can be smarter about what is output to the user? Perhaps only output "missing SMTLib translation" once per missing symbol?

ehildenb avatar Sep 28 '17 14:09 ehildenb

I think the simplest thing to do is just emit the error message and not the stack trace. Is anyone really gaining any information from those stack traces?

dwightguth avatar Sep 28 '17 15:09 dwightguth

So you mean what would show up is still:

java.lang.UnsupportedOperationException: missing SMTLib translation for .WordStack

But none of the lines like:

        at org.kframework.backend.java.symbolic.KILtoSMTLib.translate(KILtoSMTLib.java:241)

This sounds like a good fix to me. I think there would still be some redundancy in the output though, as it seems that the same missing translation gets reported multiple times.

ehildenb avatar Sep 28 '17 15:09 ehildenb

I mean, sure, but the main problem is that it's massively verbose, and this would take it from hundreds of lines down to maybe 10 at most.

dwightguth avatar Sep 28 '17 16:09 dwightguth