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 100 %t1 = alloca i32 %t2 = alloca i32 store i32 0, i32* %t1 store i32 0, i32* %t2 br label %while.cond.1 while.cond.1: %t3 = call i32 @getint() %t4 = icmp ne i32 %t3, 0 br i1 %t4, label %while.body.2, label %while.end.3 while.body.2: %t5 = load i32, i32* %t1 %t6 = getelementptr inbounds i32, i32* %t0, i32 %t5 %t7 = call i32 @getint() store i32 %t7, i32* %t6 %t8 = load i32, i32* %t1 %t9 = add i32 %t8, 1 store i32 %t9, i32* %t1 br label %while.cond.1 while.end.3: br label %while.cond.4 while.cond.4: %t10 = load i32, i32* %t1 %t11 = icmp ne i32 %t10, 0 br i1 %t11, label %while.body.5, label %while.end.6 while.body.5: %t12 = load i32, i32* %t1 %t13 = sub i32 %t12, 1 store i32 %t13, i32* %t1 %t14 = load i32, i32* %t2 %t15 = load i32, i32* %t1 %t16 = getelementptr inbounds i32, i32* %t0, i32 %t15 %t17 = load i32, i32* %t16 %t18 = add i32 %t14, %t17 store i32 %t18, i32* %t2 br label %while.cond.4 while.end.6: %t19 = load i32, i32* %t2 %t20 = srem i32 %t19, 79 ret i32 %t20 }