Skip to content

Commit

Permalink
Enable value-set to handle DEAD statements
Browse files Browse the repository at this point in the history
The default behaviour is to ignore them, but value_sett now has the
opportunity to deal with them.
  • Loading branch information
smowton committed Nov 26, 2017
1 parent 8fb6da2 commit 34dc4a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pointer-analysis/value_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,10 @@ void value_sett::apply_code_rec(
{
// doesn't do anything
}
else if(statement==ID_dead)
{
// Ignore by default; could prune the value set.
}
else
{
// std::cerr << code.pretty() << '\n';
Expand Down
1 change: 1 addition & 0 deletions src/pointer-analysis/value_set_domain_transform.inc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void value_set_domain_templatet<VST>::transform(
case OTHER:
case ASSIGN:
case DECL:
case DEAD:
value_set.apply_code(from_l->code, ns);
break;

Expand Down

0 comments on commit 34dc4a9

Please sign in to comment.