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

Fix substitutions for compare with unfolding #36

Closed
codyroux opened this issue Jun 25, 2019 · 0 comments
Closed

Fix substitutions for compare with unfolding #36

codyroux opened this issue Jun 25, 2019 · 0 comments
Assignees
Labels
bug Something isn't working WP Involves the Weakest Precondition computation

Comments

@codyroux
Copy link
Contributor

Right now, the freshen_sub function at

let freshen_sub (rename_map : var Var.Map.t) (sub : Sub.t) : Sub.t =
does not work when invoked with an inline summary of a function call, since the variables there have not been substituted.

The correct solution is to use the existing variable map in Env.t, and freshen those instead.

Alternately, we could save the variable substitution for subroutines in the environment and apply that before analyzing the inlined subroutine, but this is a hack.

@codyroux codyroux added bug Something isn't working WP Involves the Weakest Precondition computation labels Jun 25, 2019
@codyroux codyroux self-assigned this Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WP Involves the Weakest Precondition computation
Projects
None yet
Development

No branches or pull requests

2 participants