blob: 7a572faa9b84bac0309bbd0876f927db45a83c77 [file] [log] [blame]
.text
.section .text.f,"ax",@progbits
.hidden f
.globl f
.type f,@function
f: # @f
.param i32, i32
.result i32
.local i32, i32, i32
# BB#0: # %entry
i32.const $push17=, 0
i32.const $push14=, 0
i32.load $push15=, __stack_pointer($pop14)
i32.const $push16=, 16
i32.sub $push24=, $pop15, $pop16
tee_local $push23=, $4=, $pop24
i32.store __stack_pointer($pop17), $pop23
i32.store 12($4), $1
i32.const $push22=, 4
i32.add $push1=, $1, $pop22
i32.store 12($4), $pop1
block
block
block
i32.const $push21=, 1
i32.lt_s $push2=, $0, $pop21
br_if 0, $pop2 # 0: down to label2
# BB#1: # %for.body.preheader
i32.const $2=, 10
.LBB0_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label3:
i32.load8_s $push3=, 0($1)
i32.ne $push4=, $2, $pop3
br_if 3, $pop4 # 3: down to label0
# BB#3: # %if.end
# in Loop: Header=BB0_2 Depth=1
i32.const $push26=, 10
i32.add $push5=, $2, $pop26
i32.const $push25=, 1
i32.add $push6=, $1, $pop25
i32.load8_s $push7=, 0($pop6)
i32.ne $push8=, $pop5, $pop7
br_if 2, $pop8 # 2: down to label1
# BB#4: # %for.cond
# in Loop: Header=BB0_2 Depth=1
i32.const $push30=, 8
i32.add $push9=, $1, $pop30
i32.store 12($4), $pop9
i32.const $push29=, 4
i32.add $1=, $1, $pop29
i32.const $push28=, -9
i32.add $3=, $2, $pop28
i32.const $push27=, 1
i32.add $push0=, $2, $pop27
copy_local $2=, $pop0
i32.lt_s $push10=, $3, $0
br_if 0, $pop10 # 0: up to label3
.LBB0_5: # %for.end
end_loop
end_block # label2:
i32.load $push11=, 0($1)
i32.const $push12=, 123
i32.ne $push13=, $pop11, $pop12
br_if 1, $pop13 # 1: down to label0
# BB#6: # %if.end16
i32.const $push20=, 0
i32.const $push18=, 16
i32.add $push19=, $4, $pop18
i32.store __stack_pointer($pop20), $pop19
return $1
.LBB0_7: # %if.then8
end_block # label1:
call abort@FUNCTION
unreachable
.LBB0_8: # %if.then15
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
i32.const $push14=, 0
i32.const $push11=, 0
i32.load $push12=, __stack_pointer($pop11)
i32.const $push13=, 32
i32.sub $push22=, $pop12, $pop13
tee_local $push21=, $0=, $pop22
i32.store __stack_pointer($pop14), $pop21
i32.const $push0=, 5130
i32.store16 24($0), $pop0
i32.const $push1=, 21
i32.store8 27($0), $pop1
i32.const $push2=, 22
i32.store8 29($0), $pop2
i32.const $push3=, 11
i32.store8 26($0), $pop3
i32.const $push4=, 12
i32.store8 28($0), $pop4
i32.load16_u $push5=, 24($0)
i32.store16 22($0), $pop5
i32.load16_u $push6=, 26($0)
i32.store16 20($0), $pop6
i32.load16_u $push7=, 28($0)
i32.store16 18($0), $pop7
i32.const $push8=, 123
i32.store 12($0), $pop8
i32.const $push15=, 22
i32.add $push16=, $0, $pop15
i32.store 0($0), $pop16
i32.const $push17=, 18
i32.add $push18=, $0, $pop17
i32.store 8($0), $pop18
i32.const $push19=, 20
i32.add $push20=, $0, $pop19
i32.store 4($0), $pop20
i32.const $push9=, 3
i32.call $drop=, f@FUNCTION, $pop9, $0
i32.const $push10=, 0
call exit@FUNCTION, $pop10
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.functype abort, void
.functype exit, void, i32