Skip to content

Reset killed bounds for in-scope variables only#926

Merged
kkjeer merged 2 commits intomasterfrom
issue-925-resetkilledbounds
Oct 23, 2020
Merged

Reset killed bounds for in-scope variables only#926
kkjeer merged 2 commits intomasterfrom
issue-925-resetkilledbounds

Conversation

@kkjeer
Copy link
Copy Markdown
Contributor

@kkjeer kkjeer commented Oct 22, 2020

Fixes #925

This PR adjusts ResetKilledBounds to only reset a variable v whose widened bounds have been killed by statement S if v is in scope at S, i.e. if v is already present in State.ObservedBounds.

Testing:

  • Added a function to widened-bounds.c to test this change.
  • Passed automated testing on Linux.

@kkjeer kkjeer requested review from dtarditi and mgrang October 22, 2020 23:30
Copy link
Copy Markdown

@mgrang mgrang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kkjeer kkjeer merged commit bc944f9 into master Oct 23, 2020
@kkjeer kkjeer deleted the issue-925-resetkilledbounds branch October 23, 2020 03:33
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

Successfully merging this pull request may close these issues.

ResetKilledBounds adds out-of-scope variables to bounds context

2 participants