You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

224 lines
8.3 KiB

declare i32 @getint()
declare float @getfloat()
declare i32 @getarray(i32* %arg.a)
declare i32 @getfarray(float* %arg.a)
declare i32 @getch()
declare void @putint(i32 %arg.x)
declare void @putfloat(float %arg.x)
declare void @putarray(i32 %arg.n, i32* %arg.a)
declare void @putfarray(i32 %arg.n, float* %arg.a)
declare void @putch(i32 %arg.x)
declare void @starttime()
declare void @stoptime()
define i32 @main() {
entry:
%t0 = alloca i32, i32 15
%t1 = alloca i32, i32 15
%t17 = alloca i32, i32 15
%t33 = alloca i32, i32 15
%t49 = alloca i32, i32 15
%t65 = alloca i32, i32 5
%t66 = alloca i32, i32 15
%t82 = alloca i32, i32 3
%t83 = alloca i32, i32 24
%t2 = getelementptr inbounds i32, i32* %t1, i32 0
store i32 0, i32* %t2
%t3 = getelementptr inbounds i32, i32* %t1, i32 1
store i32 0, i32* %t3
%t4 = getelementptr inbounds i32, i32* %t1, i32 2
store i32 0, i32* %t4
%t5 = getelementptr inbounds i32, i32* %t1, i32 3
store i32 0, i32* %t5
%t6 = getelementptr inbounds i32, i32* %t1, i32 4
store i32 0, i32* %t6
%t7 = getelementptr inbounds i32, i32* %t1, i32 5
store i32 0, i32* %t7
%t8 = getelementptr inbounds i32, i32* %t1, i32 6
store i32 0, i32* %t8
%t9 = getelementptr inbounds i32, i32* %t1, i32 7
store i32 0, i32* %t9
%t10 = getelementptr inbounds i32, i32* %t1, i32 8
store i32 0, i32* %t10
%t11 = getelementptr inbounds i32, i32* %t1, i32 9
store i32 0, i32* %t11
%t12 = getelementptr inbounds i32, i32* %t1, i32 10
store i32 0, i32* %t12
%t13 = getelementptr inbounds i32, i32* %t1, i32 11
store i32 0, i32* %t13
%t14 = getelementptr inbounds i32, i32* %t1, i32 12
store i32 0, i32* %t14
%t15 = getelementptr inbounds i32, i32* %t1, i32 13
store i32 0, i32* %t15
%t16 = getelementptr inbounds i32, i32* %t1, i32 14
store i32 0, i32* %t16
%t18 = getelementptr inbounds i32, i32* %t17, i32 0
store i32 1, i32* %t18
%t19 = getelementptr inbounds i32, i32* %t17, i32 1
store i32 2, i32* %t19
%t20 = getelementptr inbounds i32, i32* %t17, i32 2
store i32 3, i32* %t20
%t21 = getelementptr inbounds i32, i32* %t17, i32 3
store i32 4, i32* %t21
%t22 = getelementptr inbounds i32, i32* %t17, i32 4
store i32 5, i32* %t22
%t23 = getelementptr inbounds i32, i32* %t17, i32 5
store i32 6, i32* %t23
%t24 = getelementptr inbounds i32, i32* %t17, i32 6
store i32 7, i32* %t24
%t25 = getelementptr inbounds i32, i32* %t17, i32 7
store i32 8, i32* %t25
%t26 = getelementptr inbounds i32, i32* %t17, i32 8
store i32 9, i32* %t26
%t27 = getelementptr inbounds i32, i32* %t17, i32 9
store i32 10, i32* %t27
%t28 = getelementptr inbounds i32, i32* %t17, i32 10
store i32 11, i32* %t28
%t29 = getelementptr inbounds i32, i32* %t17, i32 11
store i32 12, i32* %t29
%t30 = getelementptr inbounds i32, i32* %t17, i32 12
store i32 13, i32* %t30
%t31 = getelementptr inbounds i32, i32* %t17, i32 13
store i32 14, i32* %t31
%t32 = getelementptr inbounds i32, i32* %t17, i32 14
store i32 15, i32* %t32
%t34 = getelementptr inbounds i32, i32* %t33, i32 0
store i32 1, i32* %t34
%t35 = getelementptr inbounds i32, i32* %t33, i32 1
store i32 2, i32* %t35
%t36 = getelementptr inbounds i32, i32* %t33, i32 2
store i32 3, i32* %t36
%t37 = getelementptr inbounds i32, i32* %t33, i32 3
store i32 4, i32* %t37
%t38 = getelementptr inbounds i32, i32* %t33, i32 4
store i32 5, i32* %t38
%t39 = getelementptr inbounds i32, i32* %t33, i32 5
store i32 6, i32* %t39
%t40 = getelementptr inbounds i32, i32* %t33, i32 6
store i32 7, i32* %t40
%t41 = getelementptr inbounds i32, i32* %t33, i32 7
store i32 8, i32* %t41
%t42 = getelementptr inbounds i32, i32* %t33, i32 8
store i32 9, i32* %t42
%t43 = getelementptr inbounds i32, i32* %t33, i32 9
store i32 10, i32* %t43
%t44 = getelementptr inbounds i32, i32* %t33, i32 10
store i32 11, i32* %t44
%t45 = getelementptr inbounds i32, i32* %t33, i32 11
store i32 12, i32* %t45
%t46 = getelementptr inbounds i32, i32* %t33, i32 12
store i32 13, i32* %t46
%t47 = getelementptr inbounds i32, i32* %t33, i32 13
store i32 14, i32* %t47
%t48 = getelementptr inbounds i32, i32* %t33, i32 14
store i32 15, i32* %t48
%t50 = getelementptr inbounds i32, i32* %t49, i32 0
store i32 1, i32* %t50
%t51 = getelementptr inbounds i32, i32* %t49, i32 1
store i32 2, i32* %t51
%t52 = getelementptr inbounds i32, i32* %t49, i32 2
store i32 3, i32* %t52
%t53 = getelementptr inbounds i32, i32* %t49, i32 3
store i32 4, i32* %t53
%t54 = getelementptr inbounds i32, i32* %t49, i32 4
store i32 5, i32* %t54
%t55 = getelementptr inbounds i32, i32* %t49, i32 5
store i32 6, i32* %t55
%t56 = getelementptr inbounds i32, i32* %t49, i32 6
store i32 7, i32* %t56
%t57 = getelementptr inbounds i32, i32* %t49, i32 7
store i32 8, i32* %t57
%t58 = getelementptr inbounds i32, i32* %t49, i32 8
store i32 9, i32* %t58
%t59 = getelementptr inbounds i32, i32* %t49, i32 9
store i32 10, i32* %t59
%t60 = getelementptr inbounds i32, i32* %t49, i32 10
store i32 11, i32* %t60
%t61 = getelementptr inbounds i32, i32* %t49, i32 11
store i32 12, i32* %t61
%t62 = getelementptr inbounds i32, i32* %t49, i32 12
store i32 13, i32* %t62
%t63 = getelementptr inbounds i32, i32* %t49, i32 13
store i32 14, i32* %t63
%t64 = getelementptr inbounds i32, i32* %t49, i32 14
store i32 15, i32* %t64
%t67 = getelementptr inbounds i32, i32* %t66, i32 0
store i32 1, i32* %t67
%t68 = getelementptr inbounds i32, i32* %t66, i32 1
store i32 2, i32* %t68
%t69 = getelementptr inbounds i32, i32* %t66, i32 2
store i32 3, i32* %t69
%t70 = getelementptr inbounds i32, i32* %t66, i32 3
store i32 4, i32* %t70
%t71 = getelementptr inbounds i32, i32* %t66, i32 4
store i32 0, i32* %t71
%t72 = getelementptr inbounds i32, i32* %t66, i32 5
store i32 0, i32* %t72
%t73 = getelementptr inbounds i32, i32* %t66, i32 6
store i32 7, i32* %t73
%t74 = getelementptr inbounds i32, i32* %t66, i32 7
store i32 0, i32* %t74
%t75 = getelementptr inbounds i32, i32* %t66, i32 8
store i32 0, i32* %t75
%t76 = getelementptr inbounds i32, i32* %t66, i32 9
store i32 10, i32* %t76
%t77 = getelementptr inbounds i32, i32* %t66, i32 10
store i32 11, i32* %t77
%t78 = getelementptr inbounds i32, i32* %t66, i32 11
store i32 12, i32* %t78
%t79 = getelementptr inbounds i32, i32* %t66, i32 12
store i32 0, i32* %t79
%t80 = getelementptr inbounds i32, i32* %t66, i32 13
store i32 0, i32* %t80
%t81 = getelementptr inbounds i32, i32* %t66, i32 14
store i32 0, i32* %t81
%t84 = getelementptr inbounds i32, i32* %t83, i32 0
store i32 1, i32* %t84
%t85 = getelementptr inbounds i32, i32* %t83, i32 1
store i32 2, i32* %t85
%t86 = getelementptr inbounds i32, i32* %t83, i32 2
store i32 3, i32* %t86
%t87 = getelementptr inbounds i32, i32* %t83, i32 3
store i32 4, i32* %t87
%t88 = getelementptr inbounds i32, i32* %t83, i32 4
store i32 5, i32* %t88
%t89 = getelementptr inbounds i32, i32* %t83, i32 5
store i32 0, i32* %t89
%t90 = getelementptr inbounds i32, i32* %t83, i32 6
store i32 0, i32* %t90
%t91 = getelementptr inbounds i32, i32* %t83, i32 7
store i32 0, i32* %t91
%t92 = getelementptr inbounds i32, i32* %t83, i32 8
store i32 0, i32* %t92
%t93 = getelementptr inbounds i32, i32* %t83, i32 9
store i32 0, i32* %t93
%t94 = getelementptr inbounds i32, i32* %t83, i32 10
store i32 0, i32* %t94
%t95 = getelementptr inbounds i32, i32* %t83, i32 11
store i32 0, i32* %t95
%t96 = getelementptr inbounds i32, i32* %t83, i32 12
store i32 0, i32* %t96
%t97 = getelementptr inbounds i32, i32* %t83, i32 13
store i32 0, i32* %t97
%t98 = getelementptr inbounds i32, i32* %t83, i32 14
store i32 0, i32* %t98
%t99 = getelementptr inbounds i32, i32* %t83, i32 15
store i32 0, i32* %t99
%t100 = getelementptr inbounds i32, i32* %t83, i32 16
store i32 0, i32* %t100
%t101 = getelementptr inbounds i32, i32* %t83, i32 17
store i32 0, i32* %t101
%t102 = getelementptr inbounds i32, i32* %t83, i32 18
store i32 0, i32* %t102
%t103 = getelementptr inbounds i32, i32* %t83, i32 19
store i32 0, i32* %t103
%t104 = getelementptr inbounds i32, i32* %t83, i32 20
store i32 0, i32* %t104
%t105 = getelementptr inbounds i32, i32* %t83, i32 21
store i32 0, i32* %t105
%t106 = getelementptr inbounds i32, i32* %t83, i32 22
store i32 0, i32* %t106
%t107 = getelementptr inbounds i32, i32* %t83, i32 23
store i32 0, i32* %t107
ret i32 4
}