2018-06-07 17:04:41 +02:00
|
|
|
(module
|
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
|
|
(type $v (func))
|
2018-09-13 23:10:49 +02:00
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
2018-06-07 17:04:41 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\0d\00\00\00i\00n\00s\00t\00a\00n\00c\00e\00o\00f\00.\00t\00s")
|
2018-10-11 08:49:08 +02:00
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
|
|
(global $instanceof/an (mut i32) (i32.const 0))
|
2018-06-07 17:04:41 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-06-07 17:04:41 +02:00
|
|
|
(start $start)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $instanceof/isI32<i32> (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
2018-06-07 17:04:41 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $instanceof/isI32<f64> (; 2 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
2018-06-07 17:04:41 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $start (; 3 ;) (; has Stack IR ;) (type $v)
|
2018-06-07 17:04:41 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $instanceof/isI32<i32>)
|
2018-06-07 17:04:41 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 38)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $instanceof/isI32<f64>)
|
2018-06-07 17:04:41 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 39)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 02:01:45 +02:00
|
|
|
(if
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $instanceof/isI32<f64>)
|
2018-06-09 02:01:45 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 40)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_global $instanceof/an)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $instanceof/an
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_global $instanceof/an)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
|
|
|
(i32.const 46)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-07 17:04:41 +02:00
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
|
|
|
(nop)
|
|
|
|
)
|
2018-06-07 17:04:41 +02:00
|
|
|
)
|