blob: b1ca259a3d6e55fa061e5cfc23db39671c77242f [file] [log] [blame] [edit]
[fuzz-exec] calling structs
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 100]
[LoggingExternalInterface logging 100]
[fuzz-exec] calling arrays
[LoggingExternalInterface logging 50]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 128]
[LoggingExternalInterface logging -128]
[LoggingExternalInterface logging 42]
[fuzz-exec] calling br_on_cast
[LoggingExternalInterface logging 3]
[fuzz-exec] calling br_on_failed_cast-1
[LoggingExternalInterface logging 1]
[fuzz-exec] calling br_on_failed_cast-2
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 999]
[fuzz-exec] calling cast-null-anyref-to-gc
[LoggingExternalInterface logging 0]
[fuzz-exec] calling br-on_non_null
[fuzz-exec] calling br-on_non_null-2
[LoggingExternalInterface logging 1]
[trap unreachable]
[fuzz-exec] calling ref-as-func-of-func
[fuzz-exec] calling cast-on-func
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1337]
[LoggingExternalInterface logging 1]
[trap cast error]
[fuzz-exec] calling array-alloc-failure
[host limit allocation failure]
[fuzz-exec] calling init-array-packed
[fuzz-exec] note result: init-array-packed => 213
[fuzz-exec] calling array-copy
[LoggingExternalInterface logging 10]
[LoggingExternalInterface logging 10]
[LoggingExternalInterface logging 99]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 10]
[fuzz-exec] calling array.new_fixed
[LoggingExternalInterface logging 2]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 50]
[fuzz-exec] calling array.new_fixed-packed
[LoggingExternalInterface logging 8]
[fuzz-exec] calling static-casts
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1]
[fuzz-exec] calling static-br_on_cast
[LoggingExternalInterface logging 3]
[fuzz-exec] calling static-br_on_cast_fail
[LoggingExternalInterface logging -2]
(module
(type $bytes (array (mut i8)))
(type $void_func (func))
(type $struct (struct (field (mut i32))))
(type $i32_=>_none (func (param i32)))
(type $extendedstruct (sub $struct (struct (field (mut i32)) (field f64))))
(type $int_func (func (result i32)))
(import "fuzzing-support" "log-i32" (func $log (type $i32_=>_none) (param i32)))
(export "structs" (func $0))
(export "arrays" (func $1))
(export "br_on_cast" (func $2))
(export "br_on_failed_cast-1" (func $3))
(export "br_on_failed_cast-2" (func $4))
(export "cast-null-anyref-to-gc" (func $5))
(export "br-on_non_null" (func $7))
(export "br-on_non_null-2" (func $8))
(export "ref-as-func-of-func" (func $7))
(export "cast-on-func" (func $11))
(export "array-alloc-failure" (func $7))
(export "init-array-packed" (func $13))
(export "array-copy" (func $15))
(export "array.new_fixed" (func $16))
(export "array.new_fixed-packed" (func $17))
(export "static-casts" (func $18))
(export "static-br_on_cast" (func $2))
(export "static-br_on_cast_fail" (func $20))
(func $0 (type $void_func) (; has Stack IR ;)
(local $0 i32)
(call $log
(i32.const 0)
)
(call $log
(i32.const 42)
)
(call $log
(local.tee $0
(i32.const 100)
)
)
(call $log
(i32.const 100)
)
)
(func $1 (type $void_func) (; has Stack IR ;)
(local $0 (ref $bytes))
(call $log
(array.len
(local.tee $0
(array.new $bytes
(i32.const 42)
(i32.const 50)
)
)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 10)
)
)
(array.set $bytes
(local.get $0)
(i32.const 10)
(i32.const 128)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 10)
)
)
(call $log
(array.get_s $bytes
(local.get $0)
(i32.const 10)
)
)
(call $log
(array.get_s $bytes
(local.get $0)
(i32.const 20)
)
)
)
(func $2 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const 3)
)
)
(func $3 (type $void_func) (; has Stack IR ;)
(local $0 (ref $struct))
(local.set $0
(struct.new_default $struct)
)
(drop
(block $any (result (ref null $struct))
(call $log
(i32.const 1)
)
(drop
(br_on_cast_fail $any (ref $struct) (ref $extendedstruct)
(local.get $0)
)
)
(call $log
(i32.const 999)
)
(ref.null none)
)
)
)
(func $4 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const 1)
)
(call $log
(i32.const 999)
)
)
(func $5 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const 0)
)
)
(func $7 (type $void_func) (; has Stack IR ;)
(nop)
)
(func $8 (type $void_func) (; has Stack IR ;)
(drop
(block
(call $log
(i32.const 1)
)
(unreachable)
)
)
)
(func $11 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const 0)
)
(call $log
(i32.const 1337)
)
(call $log
(i32.const 1)
)
(unreachable)
)
(func $13 (type $int_func) (; has Stack IR ;) (result i32)
(array.get_u $bytes
(array.new $bytes
(i32.const -43)
(i32.const 50)
)
(i32.const 10)
)
)
(func $15 (type $void_func) (; has Stack IR ;)
(local $0 (ref $bytes))
(local $1 (ref $bytes))
(array.set $bytes
(local.tee $1
(array.new_default $bytes
(i32.const 200)
)
)
(i32.const 42)
(i32.const 99)
)
(call $log
(array.get_u $bytes
(local.tee $0
(array.new $bytes
(i32.const 10)
(i32.const 100)
)
)
(i32.const 10)
)
)
(array.copy $bytes $bytes
(local.get $0)
(i32.const 10)
(local.get $1)
(i32.const 42)
(i32.const 2)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 9)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 10)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 11)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 12)
)
)
)
(func $16 (type $void_func) (; has Stack IR ;)
(local $0 (ref $bytes))
(call $log
(array.len
(local.tee $0
(array.new_fixed $bytes
(i32.const 42)
(i32.const 50)
)
)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 0)
)
)
(call $log
(array.get_u $bytes
(local.get $0)
(i32.const 1)
)
)
)
(func $17 (type $void_func) (; has Stack IR ;)
(call $log
(array.get_u $bytes
(array.new_fixed $bytes
(i32.const -11512)
)
(i32.const 0)
)
)
)
(func $18 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const 1)
)
(call $log
(i32.const 0)
)
(call $log
(i32.const 0)
)
(call $log
(i32.const 1)
)
(call $log
(i32.const 0)
)
(call $log
(i32.const 1)
)
)
(func $20 (type $void_func) (; has Stack IR ;)
(call $log
(i32.const -2)
)
)
)
[fuzz-exec] calling structs
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 100]
[LoggingExternalInterface logging 100]
[fuzz-exec] calling arrays
[LoggingExternalInterface logging 50]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 128]
[LoggingExternalInterface logging -128]
[LoggingExternalInterface logging 42]
[fuzz-exec] calling br_on_cast
[LoggingExternalInterface logging 3]
[fuzz-exec] calling br_on_failed_cast-1
[LoggingExternalInterface logging 1]
[fuzz-exec] calling br_on_failed_cast-2
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 999]
[fuzz-exec] calling cast-null-anyref-to-gc
[LoggingExternalInterface logging 0]
[fuzz-exec] calling br-on_non_null
[fuzz-exec] calling br-on_non_null-2
[LoggingExternalInterface logging 1]
[trap unreachable]
[fuzz-exec] calling ref-as-func-of-func
[fuzz-exec] calling cast-on-func
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1337]
[LoggingExternalInterface logging 1]
[trap unreachable]
[fuzz-exec] calling array-alloc-failure
[fuzz-exec] calling init-array-packed
[fuzz-exec] note result: init-array-packed => 213
[fuzz-exec] calling array-copy
[LoggingExternalInterface logging 10]
[LoggingExternalInterface logging 10]
[LoggingExternalInterface logging 99]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 10]
[fuzz-exec] calling array.new_fixed
[LoggingExternalInterface logging 2]
[LoggingExternalInterface logging 42]
[LoggingExternalInterface logging 50]
[fuzz-exec] calling array.new_fixed-packed
[LoggingExternalInterface logging 8]
[fuzz-exec] calling static-casts
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface logging 1]
[fuzz-exec] calling static-br_on_cast
[LoggingExternalInterface logging 3]
[fuzz-exec] calling static-br_on_cast_fail
[LoggingExternalInterface logging -2]
ignoring comparison of ExecutionResults!
[fuzz-exec] calling foo
[host limit allocation failure]
(module
(type $none_=>_i32 (func (result i32)))
(export "foo" (func $0))
(func $0 (type $none_=>_i32) (; has Stack IR ;) (result i32)
(i32.const 0)
)
)
[fuzz-exec] calling foo
[fuzz-exec] note result: foo => 0
ignoring comparison of ExecutionResults!