oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/plugin/counter.wat
572 bytes, 1 run
created by r1870400018:73475, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | (module $counter |
| 2 | (import "typst_env" "wasm_minimal_protocol_write_args_to_buffer" (func (param i32) (result ))) |
| 3 | (import "typst_env" "wasm_minimal_protocol_send_result_to_host" (func (param i32 i32) (result ))) |
| 4 | (memory (export "memory") 1) |
| 5 | (func (export "inc") (param ) (result i32) |
| 6 | i32.const 0 |
| 7 | i32.const 0 |
| 8 | i32.load8_u offset=0 |
| 9 | i32.const 1 |
| 10 | i32.add |
| 11 | i32.store8 offset=0 |
| 12 | i32.const 0 |
| 13 | i32.const 1 |
| 14 | call 1 |
| 15 | i32.const 0 |
| 16 | ) |
| 17 | (func (export "get") (param ) (result i32) |
| 18 | i32.const 0 |
| 19 | i32.const 1 |
| 20 | call 1 |
| 21 | i32.const 0 |
| 22 | ) |
| 23 | ) |