Skip to content

Commit 9465771

Browse files
committed
Value-set analysis: ignore DEAD statements
We could be smarter with these; this at least enables us to process current standard GOTO programs.
1 parent a2c1685 commit 9465771

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pointer-analysis/value_set.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,10 @@ void value_sett::apply_code_rec(
16151615
{
16161616
// doesn't do anything
16171617
}
1618+
else if(statement==ID_dead)
1619+
{
1620+
// ignore (could potentially prune value set in future)
1621+
}
16181622
else
16191623
{
16201624
// std::cerr << code.pretty() << '\n';

0 commit comments

Comments
 (0)