Skip to content

Commit 34dc4a9

Browse files
committed
Enable value-set to handle DEAD statements
The default behaviour is to ignore them, but value_sett now has the opportunity to deal with them.
1 parent 8fb6da2 commit 34dc4a9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/pointer-analysis/value_set.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,10 @@ void value_sett::apply_code_rec(
16171617
{
16181618
// doesn't do anything
16191619
}
1620+
else if(statement==ID_dead)
1621+
{
1622+
// Ignore by default; could prune the value set.
1623+
}
16201624
else
16211625
{
16221626
// std::cerr << code.pretty() << '\n';

src/pointer-analysis/value_set_domain_transform.inc

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ void value_set_domain_templatet<VST>::transform(
3737
case OTHER:
3838
case ASSIGN:
3939
case DECL:
40+
case DEAD:
4041
value_set.apply_code(from_l->code, ns);
4142
break;
4243

0 commit comments

Comments
 (0)