Skip to content

Commit 0337b8f

Browse files
committed
propagating top and bottom stacks in abstract state
1 parent f9903f5 commit 0337b8f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/it/unipr/analysis/EVMAbstractState.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,12 @@ public EVMAbstractState wideningAux(EVMAbstractState other) throws SemanticExcep
20622062

20632063
@Override
20642064
public EVMAbstractState lubAux(EVMAbstractState other) throws SemanticException {
2065-
return new EVMAbstractState(stacks.lubAux(other.stacks),
2065+
AbstractStackSet stacks = this.stacks.lubAux(other.stacks);
2066+
if (stacks.isBottom())
2067+
return BOTTOM;
2068+
if (stacks.isTop())
2069+
return TOP;
2070+
return new EVMAbstractState(stacks,
20662071
memory.lub(other.getMemory()),
20672072
storage.lub(other.storage));
20682073
}

0 commit comments

Comments
 (0)