After compiling to WASM, UDFs become much larger than the source code. When they're included in test_wasm.py, it becomes difficult to navigate in the file. Moving them to another place does not make understanding the test scripts harder, because the source code is still included. This problem will become even more severe when testing UDFs using WASI. Signed-off-by: Wojciech Mitros <wojciech.mitros@scylladb.com> Closes #10934
144 lines
2.5 KiB
Plaintext
144 lines
2.5 KiB
Plaintext
(module
|
|
(type (;0;) (func (param i64 i64) (result i64)))
|
|
(func (;0;) (type 0) (param i64 i64) (result i64)
|
|
(local i32 i32 i32)
|
|
block ;; label = @1
|
|
local.get 1
|
|
i64.const -4294967296
|
|
i64.and
|
|
i64.const 17179869184
|
|
i64.ne
|
|
br_if 0 (;@1;)
|
|
local.get 0
|
|
i64.const -4294967296
|
|
i64.and
|
|
i64.const 68719476736
|
|
i64.ne
|
|
br_if 0 (;@1;)
|
|
local.get 1
|
|
i32.wrap_i64
|
|
i32.load
|
|
local.set 3
|
|
local.get 0
|
|
i32.wrap_i64
|
|
local.tee 4
|
|
i32.const 4
|
|
i32.add
|
|
local.tee 2
|
|
local.get 2
|
|
i32.load
|
|
local.tee 2
|
|
i32.const 24
|
|
i32.shl
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shl
|
|
i32.const 16711680
|
|
i32.and
|
|
i32.or
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 65280
|
|
i32.and
|
|
local.get 2
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.or
|
|
i32.const 1
|
|
i32.add
|
|
local.tee 2
|
|
i32.const 24
|
|
i32.shl
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shl
|
|
i32.const 16711680
|
|
i32.and
|
|
i32.or
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 65280
|
|
i32.and
|
|
local.get 2
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.or
|
|
i32.store
|
|
local.get 4
|
|
i32.const 12
|
|
i32.add
|
|
local.tee 2
|
|
local.get 2
|
|
i32.load
|
|
local.tee 2
|
|
i32.const 24
|
|
i32.shl
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shl
|
|
i32.const 16711680
|
|
i32.and
|
|
i32.or
|
|
local.get 2
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 65280
|
|
i32.and
|
|
local.get 2
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.or
|
|
local.get 3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.const 16711680
|
|
i32.and
|
|
local.get 3
|
|
i32.const 24
|
|
i32.shl
|
|
i32.or
|
|
local.get 3
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 65280
|
|
i32.and
|
|
local.get 3
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.or
|
|
i32.add
|
|
local.tee 3
|
|
i32.const 24
|
|
i32.shl
|
|
local.get 3
|
|
i32.const 8
|
|
i32.shl
|
|
i32.const 16711680
|
|
i32.and
|
|
i32.or
|
|
local.get 3
|
|
i32.const 8
|
|
i32.shr_u
|
|
i32.const 65280
|
|
i32.and
|
|
local.get 3
|
|
i32.const 24
|
|
i32.shr_u
|
|
i32.or
|
|
i32.or
|
|
i32.store
|
|
end
|
|
local.get 0)
|
|
(memory (;0;) 2)
|
|
(global (;0;) i32 (i32.const 1024))
|
|
(export "memory" (memory 0))
|
|
(export "sum" (func 0))
|
|
(export "_scylla_abi" (global 0))
|
|
(data (;0;) (i32.const 1024) "\01"))
|