File tree 1 file changed +3
-1
lines changed
kevm-pyk/src/kevm_pyk/kproj/evm-semantics
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,9 @@ The `#next [_]` operator initiates execution by:
381
381
| #stackOverflow ( WordStack , OpCode ) [symbol(#stackOverflow), function, total]
382
382
// ------------------------------------------------------------------------------------------------
383
383
rule #stackUnderflow(WS, OP:OpCode) => #sizeWordStack(WS) <Int #stackNeeded(OP)
384
- rule #stackOverflow (WS, OP) => #sizeWordStack(WS) +Int #stackDelta(OP) >Int 1024
384
+
385
+ rule #stackOverflow(_WS, OP) => false requires #stackDelta(OP) <=Int 0
386
+ rule #stackOverflow(WS, OP) => 1024 <Int #sizeWordStack(WS) +Int #stackDelta(OP) [owise]
385
387
386
388
syntax Int ::= #stackNeeded ( OpCode ) [symbol(#stackNeeded), function]
387
389
// -----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments