Skip to content

Commit 528e64b

Browse files
committed
implement exit_early
1 parent 029dd49 commit 528e64b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/skribe/kdist/stylus-semantics/hostfuns.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@ Equivalent to the `TSTORE` opcode in EVM.
266266
```
267267

268268

269+
## exit_early
270+
271+
This is just a tracing (no-op) function.
272+
```k
273+
rule [hostCall-exit-early]:
274+
<instrs> hostCall ( "vm_hooks" , "exit_early" , [ i32 .ValTypes ] -> [ .ValTypes ] )
275+
=> .K ...
276+
</instrs>
277+
<locals>
278+
0 |-> < i32 > _EC
279+
</locals>
280+
<k> #endWasm ... </k>
281+
282+
```
283+
269284
## write_result
270285

271286
```k

0 commit comments

Comments
 (0)