Skip to content

Commit b2896de

Browse files
committed
kevm-pyk/evm: use function, not macro, for stack under/over-flow
1 parent f504b8b commit b2896de

File tree

1 file changed

+3
-3
lines changed
  • kevm-pyk/src/kevm_pyk/kproj/evm-semantics

1 file changed

+3
-3
lines changed

Diff for: kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ The `#next [_]` operator initiates execution by:
377377
- `#stackDelta` is the delta the stack will have after the opcode executes.
378378

379379
```k
380-
syntax Bool ::= #stackUnderflow ( WordStack , OpCode ) [symbol(#stackUnderflow), macro]
381-
| #stackOverflow ( WordStack , OpCode ) [symbol(#stackOverflow), macro]
382-
// --------------------------------------------------------------------------------------
380+
syntax Bool ::= #stackUnderflow ( WordStack , OpCode ) [symbol(#stackUnderflow), function, total]
381+
| #stackOverflow ( WordStack , OpCode ) [symbol(#stackOverflow), function, total]
382+
// ------------------------------------------------------------------------------------------------
383383
rule #stackUnderflow(WS, OP:OpCode) => #sizeWordStack(WS) <Int #stackNeeded(OP)
384384
rule #stackOverflow (WS, OP) => #sizeWordStack(WS) +Int #stackDelta(OP) >Int 1024
385385

0 commit comments

Comments
 (0)