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

Print concrete addresses along with paths #75

Closed
codyroux opened this issue Oct 2, 2019 · 1 comment
Closed

Print concrete addresses along with paths #75

codyroux opened this issue Oct 2, 2019 · 1 comment
Assignees
Labels
good first issue Good for newcomers WP Involves the Weakest Precondition computation

Comments

@codyroux
Copy link
Contributor

codyroux commented Oct 2, 2019

Right now

val get_refuted_goals_and_paths :
gets the refuted goals and paths to it as a path object.

Path objects are just maps from tids to bools (branches and the paths they take), which are useful, but hard to read in an output. As a result, Constr.print_refuted_goals and Constr.refuted_goal_to_string discard the path.

However, when stepping trough the counter-example with gdb, it's useful to be able to assess whether we're going down the right path with regards to the counter-model, so having a Constr.refuted_goal_path_to_string would be nice.

This function should include the concrete addresses of the branch, which Ivan tells me can be obtained using Term.get_attr address t. Unfortunately this means tracking terms in addition to their tids, or look up the terms each time using Term.find on the whole subroutine.

@codyroux codyroux added good first issue Good for newcomers WP Involves the Weakest Precondition computation labels Oct 2, 2019
@fortunac fortunac self-assigned this Oct 3, 2019
@fortunac
Copy link

fortunac commented Oct 8, 2019

Handled in #81

@fortunac fortunac closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers WP Involves the Weakest Precondition computation
Projects
None yet
Development

No branches or pull requests

2 participants