mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
303 lines
5.4 KiB
Plaintext
303 lines
5.4 KiB
Plaintext
(module
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $v (func))
|
|
(type $iv (func (param i32)))
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(global $std/pointer/one (mut i32) (i32.const 0))
|
|
(global $std/pointer/two (mut i32) (i32.const 0))
|
|
(global $std/pointer/add (mut i32) (i32.const 0))
|
|
(global $std/pointer/sub (mut i32) (i32.const 0))
|
|
(global $std/pointer/nextOne (mut i32) (i32.const 0))
|
|
(global $~argc (mut i32) (i32.const 0))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\0e\00\00\00s\00t\00d\00/\00p\00o\00i\00n\00t\00e\00r\00.\00t\00s")
|
|
(export "memory" (memory $0))
|
|
(export "_setargc" (func $~setargc))
|
|
(export "Pointer<Entry>#constructor" (func $std/pointer/Pointer<Entry>#constructor|trampoline))
|
|
(start $start)
|
|
(func $std/pointer/Pointer<Entry>#constructor (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(get_local $0)
|
|
)
|
|
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
|
|
(set_global $std/pointer/one
|
|
(call $std/pointer/Pointer<Entry>#constructor
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_global $std/pointer/two
|
|
(call $std/pointer/Pointer<Entry>#constructor
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/one)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 52)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/two)
|
|
(i32.const 24)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 53)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_global $std/pointer/one)
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_global $std/pointer/one)
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load
|
|
(get_global $std/pointer/one)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 57)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/pointer/one)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 58)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/pointer/add
|
|
(i32.add
|
|
(get_global $std/pointer/one)
|
|
(get_global $std/pointer/two)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/add)
|
|
(i32.const 32)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 61)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/pointer/sub
|
|
(i32.sub
|
|
(get_global $std/pointer/two)
|
|
(get_global $std/pointer/one)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/sub)
|
|
(i32.const 16)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 64)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/one)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 66)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/pointer/one
|
|
(i32.add
|
|
(get_global $std/pointer/one)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_global $std/pointer/nextOne
|
|
(get_global $std/pointer/one)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/nextOne)
|
|
(get_global $std/pointer/one)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 68)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/one)
|
|
(i32.const 16)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 69)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/two)
|
|
(i32.const 24)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 71)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/pointer/two
|
|
(i32.sub
|
|
(get_global $std/pointer/two)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_global $std/pointer/two
|
|
(i32.sub
|
|
(get_global $std/pointer/two)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/pointer/two)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 74)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load
|
|
(get_global $std/pointer/two)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 75)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/pointer/two)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 76)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/pointer/Pointer<Entry>#constructor|trampoline (; 3 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(call $std/pointer/Pointer<Entry>#constructor
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~setargc (; 4 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(set_global $~argc
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|