github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/internal/integration_test/engine/testdata/huge_call_stack_unwind.wat (about) 1 (module 2 (func 3 ;; check global and if it is not zero, call the function again 4 (if (i32.ne (global.get $g) (i32.const 0)) 5 (then 6 (global.set $g (i32.sub (global.get $g) (i32.const 1))) 7 (call 0) 8 ) 9 ) 10 ;; otherwise do i32.div by zero and crash 11 (i32.div_s (i32.const 0) (i32.const 0)) 12 drop 13 ) 14 (global $g (mut i32) (i32.const 1000)) 15 (start 0) 16 )