-
-
Notifications
You must be signed in to change notification settings - Fork 671
/
Copy pathbigint-integration.debug.wat
60 lines (60 loc) · 1.8 KB
/
bigint-integration.debug.wat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
(module
(type $0 (func (result i64)))
(type $1 (func))
(type $2 (func (param i32 i32 i32 i32)))
(import "bigint-integration" "externalValue" (global $bigint-integration/externalValue i64))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(import "bigint-integration" "getExternalValue" (func $bigint-integration/getExternalValue (result i64)))
(global $bigint-integration/internalValue i64 (i64.const 9007199254740991))
(global $~lib/memory/__data_end i32 (i32.const 76))
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 32844))
(global $~lib/memory/__heap_base i32 (i32.const 32844))
(global $~started (mut i32) (i32.const 0))
(memory $0 1)
(data $0 (i32.const 12) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00*\00\00\00b\00i\00g\00i\00n\00t\00-\00i\00n\00t\00e\00g\00r\00a\00t\00i\00o\00n\00.\00t\00s\00\00\00")
(table $0 1 1 funcref)
(elem $0 (i32.const 1))
(export "internalValue" (global $bigint-integration/internalValue))
(export "getInternalValue" (func $bigint-integration/getInternalValue))
(export "memory" (memory $0))
(export "_start" (func $~start))
(func $start:bigint-integration
global.get $bigint-integration/externalValue
i64.const 9007199254740991
i64.eq
i32.eqz
if
i32.const 0
i32.const 32
i32.const 4
i32.const 1
call $~lib/builtins/abort
unreachable
end
call $bigint-integration/getExternalValue
global.get $bigint-integration/externalValue
i64.eq
i32.eqz
if
i32.const 0
i32.const 32
i32.const 5
i32.const 1
call $~lib/builtins/abort
unreachable
end
)
(func $bigint-integration/getInternalValue (result i64)
global.get $bigint-integration/internalValue
return
)
(func $~start
global.get $~started
if
return
end
i32.const 1
global.set $~started
call $start:bigint-integration
)
)