Have print_goal
print out the provenance of each goal when sim-verbose
is high enough
#1372
Labels
needs design
Technical design work is needed for issue to progress
topics: error-messages
Issues involving the messages SAW produces on error
type: bug
Issues reporting bugs or unexpected/unwanted behavior
usability
An issue that impedes efficient understanding and use
Milestone
Typically, using
print_goal
in a proof results in output like this:This tells me the relevant function (
ECDSA_do_sign
), what kind of goal it is (safety assertion:
), and the goal number for each goal. However, it doesn't really give any sort of indication of why this goal needs to be proved, which makes the associated SAWCore term rather mysterious.It turns out that SAW is intentionally omitting some information, however. If I apply this quick-and-dirty patch:
Then the output of
print_goal
becomes much more useful:It now reveals that the overrides for
ec_point_mul_scalar_base
,ec_scalar_is_zero
, andec_scalar_add
are the sources of these goals. Obviously, the output could stand to be printed somewhat more neatly, but the information is definitely there.Would it be reasonable to have
print_goal
print this information ifsim-verbose
is set to a high enough level (perhaps2
or higher)?The text was updated successfully, but these errors were encountered: