|
1 | 1 | (module |
2 | 2 | (type $none_=>_i32 (func (result i32))) |
3 | 3 | (type $none_=>_none (func)) |
| 4 | + (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) |
| 5 | + (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) |
| 6 | + (global $namespace/outVariable (mut i32) (i32.const 0)) |
4 | 7 | (global $namespace/Outer.outerVar (mut i32) (i32.const 1)) |
5 | 8 | (global $namespace/Outer.Inner.aVar (mut i32) (i32.const 0)) |
6 | 9 | (global $namespace/Outer.Inner.anotherVar (mut i32) (i32.const 0)) |
7 | 10 | (global $namespace/Outer.Inner.evenAnotherVar (mut i32) (i32.const 0)) |
8 | 11 | (global $namespace/Outer.Inner.anEnum.ONE i32 (i32.const 1)) |
9 | 12 | (global $namespace/Outer.Inner.anEnum.TWO i32 (i32.const 2)) |
10 | | - (global $~lib/memory/__data_end i32 (i32.const 8)) |
11 | | - (global $~lib/memory/__stack_pointer (mut i32) (i32.const 32776)) |
12 | | - (global $~lib/memory/__heap_base i32 (i32.const 32776)) |
13 | | - (memory $0 0) |
| 13 | + (global $~lib/memory/__data_end i32 (i32.const 60)) |
| 14 | + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 32828)) |
| 15 | + (global $~lib/memory/__heap_base i32 (i32.const 32828)) |
| 16 | + (memory $0 1) |
| 17 | + (data $0 (i32.const 12) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\18\00\00\00n\00a\00m\00e\00s\00p\00a\00c\00e\00.\00t\00s\00\00\00\00\00") |
14 | 18 | (table $0 1 1 funcref) |
15 | 19 | (elem $0 (i32.const 1)) |
16 | 20 | (export "memory" (memory $0)) |
|
24 | 28 | return |
25 | 29 | ) |
26 | 30 | (func $start:namespace |
| 31 | + i32.const 42 |
| 32 | + global.set $namespace/outVariable |
27 | 33 | global.get $namespace/Outer.Inner.aVar |
28 | 34 | global.set $namespace/Outer.Inner.anotherVar |
29 | 35 | global.get $namespace/Outer.outerVar |
30 | 36 | global.set $namespace/Outer.Inner.evenAnotherVar |
| 37 | + global.get $namespace/outVariable |
| 38 | + i32.const 42 |
| 39 | + i32.eq |
| 40 | + i32.eqz |
| 41 | + if |
| 42 | + i32.const 0 |
| 43 | + i32.const 32 |
| 44 | + i32.const 16 |
| 45 | + i32.const 1 |
| 46 | + call $~lib/builtins/abort |
| 47 | + unreachable |
| 48 | + end |
31 | 49 | global.get $namespace/Outer.Inner.aVar |
32 | 50 | drop |
33 | 51 | call $namespace/Outer.Inner.aFunc |
|
0 commit comments