Skip to content

Commit ba2c45f

Browse files
committed
Added method to check if live storage usage is enabled
1 parent 49f522c commit ba2c45f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ public static void setUseStorageLive() {
143143
USE_STORAGE_LIVE = true;
144144
}
145145

146+
/**
147+
* Returns whether live storage usage has been enabled.
148+
*
149+
* @return true if live storage is used, false otherwise
150+
*/
151+
public static boolean isUseStorageLive() {
152+
return USE_STORAGE_LIVE;
153+
}
154+
146155
@Override
147156
public EVMAbstractState assign(Identifier id, ValueExpression expression, ProgramPoint pp, SemanticOracle oracle) {
148157
// nothing to do here

0 commit comments

Comments
 (0)