#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int a[29], b[29], c[29];
  int i, j, d, e, f, sum1 = 0, sum2 = 0, sum3 = 0, k;
  printf("»¶Ó­Ê¹ÓÃÃÈÃÃÖ½Ñ§Éú³É¼¨¹ÜÀí³ÌÐò¡«ß÷¡«\nÇëÊäÈëÈý¿Æ³É¼¨Ê±ÓÃ¿Õ¸ñ½«Æä·Ö¿ª£"
         "¬Ð»Ð»£¡\nÈçÑ§ÉúÊýÁ¿²»×ã30ÈË£¬ÇëÊäÈëÈý¸ö-1\n");
  printf("=================================================\n");
  for (i = 0; i <= 29; i++) {
    printf("ÇëÊäÈëÑ§ºÅÎª%dµÄÑ§ÉúµÄÈý¿Æ³É¼¨:", i + 1);
    scanf("%d%d%d", &d, &e, &f);
    if (d == -1 && e == -1 && f == -1)
      break;
    else
      a[i] = d, b[i] = e, c[i] = f;
  }
  printf("=================================================\n");
  for (j = 0; j <= i - 1; j++) {
    printf("Ñ§ºÅÎª%dµÄÑ§ÉúµÄ×Ü·ÖÊÇ:%d£¬Æ½¾ù·ÖÊÇ£º%d\n", j + 1,
           a[j] + b[j] + c[j], (a[j] + b[j] + c[j] / 3));
  }
  for (k = 0; k <= i - 1; k++) {
    sum1 += a[k];
    sum2 += b[k];
    sum3 += c[k];
  }
  printf("È«°àÍ¬Ñ§¹²¼Æ%dÈË\n", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x198(%rbp)
movl   $0x0,-0x19c(%rbp)
movl   $0x0,-0x1a0(%rbp)
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x184(%rbp)
cmpl   $0x1d,-0x184(%rbp)
jg     1239 <main+0x119>
mov    -0x184(%rbp),%esi
add    $0x1,%esi
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
lea    -0x18c(%rbp),%rsi
lea    -0x190(%rbp),%rdx
lea    -0x194(%rbp),%rcx
call   1040 <scanf@plt>
cmpl   $0xffffffff,-0x18c(%rbp)
jne    11e7 <main+0xc7>
cmpl   $0xffffffff,-0x190(%rbp)
jne    11e7 <main+0xc7>
cmpl   $0xffffffff,-0x194(%rbp)
jne    11e7 <main+0xc7>
jmp    1239 <main+0x119>
mov    -0x18c(%rbp),%ecx
movslq -0x184(%rbp),%rax
mov    %ecx,-0x80(%rbp,%rax,4)
mov    -0x190(%rbp),%ecx
movslq -0x184(%rbp),%rax
mov    %ecx,-0x100(%rbp,%rax,4)
mov    -0x194(%rbp),%ecx
movslq -0x184(%rbp),%rax
mov    %ecx,-0x180(%rbp,%rax,4)
jmp    1225 <main+0x105>
mov    -0x184(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x184(%rbp)
jmp    1176 <main+0x56>
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x188(%rbp)
mov    -0x188(%rbp),%eax
mov    -0x184(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     12f7 <main+0x1d7>
mov    -0x188(%rbp),%esi
add    $0x1,%esi
movslq -0x188(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
movslq -0x188(%rbp),%rcx
add    -0x100(%rbp,%rcx,4),%eax
movslq -0x188(%rbp),%rcx
add    -0x180(%rbp,%rcx,4),%eax
mov    %eax,-0x1a8(%rbp)
movslq -0x188(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%ecx
movslq -0x188(%rbp),%rax
add    -0x100(%rbp,%rax,4),%ecx
movslq -0x188(%rbp),%rax
mov    -0x180(%rbp,%rax,4),%eax
mov    $0x3,%edi
cltd
idiv   %edi
mov    -0x1a8(%rbp),%edx
add    %eax,%ecx
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x188(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x188(%rbp)
jmp    1251 <main+0x131>
movl   $0x0,-0x1a4(%rbp)
mov    -0x1a4(%rbp),%eax
mov    -0x184(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1377 <main+0x257>
movslq -0x1a4(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
add    -0x198(%rbp),%eax
mov    %eax,-0x198(%rbp)
movslq -0x1a4(%rbp),%rax
mov    -0x100(%rbp,%rax,4),%eax
add    -0x19c(%rbp),%eax
mov    %eax,-0x19c(%rbp)
movslq -0x1a4(%rbp),%rax
mov    -0x180(%rbp,%rax,4),%eax
add    -0x1a0(%rbp),%eax
mov    %eax,-0x1a0(%rbp)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1301 <main+0x1e1>
mov    -0x184(%rbp),%esi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0x102b(%rip),%rdi
call   1030 <puts@plt>
lea    0xedc(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x8(%rsp),%r13
lea    0x4(%rsp),%rbx
xor    %r14d,%r14d
jmp    1198 <main+0x68>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,0x110(%rsp,%rbp,4)
mov    %ecx,0x90(%rsp,%rbp,4)
mov    %edx,0x10(%rsp,%rbp,4)
cmp    $0x1e,%r14
je     11f0 <main+0xc0>
mov    %r14,%rbp
add    $0x1,%r14
lea    0xe5a(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
mov    0x8(%rsp),%ecx
mov    0x4(%rsp),%edx
cmp    $0xffffffff,%eax
jne    1180 <main+0x50>
cmp    $0xffffffff,%ecx
jne    1180 <main+0x50>
cmp    $0xffffffff,%edx
jne    1180 <main+0x50>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
jne    1201 <main+0xd1>
xor    %ebx,%ebx
jmp    1254 <main+0x124>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1e,%ebp
mov    %ebp,%ebx
lea    0xe39(%rip),%r14
xor    %eax,%eax
nopl   0x0(%rax)
mov    0x90(%rsp,%rax,4),%esi
add    0x110(%rsp,%rax,4),%esi
lea    0x1(%rax),%rbp
movslq 0x10(%rsp,%rax,4),%rax
lea    (%rax,%rsi,1),%edx
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
shr    $0x20,%rcx
add    %eax,%ecx
add    %esi,%ecx
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rax
cmp    %rbp,%rbx
jne    1210 <main+0xe0>
lea    0xe31(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [212 x i8] c"\C2\BB\C2\B6\C3\93\C2\AD\C3\8A\C2\B9\C3\93\C3\83\C3\83\C3\88\C3\83\C3\83\C3\96\C2\BD\C3\91\C2\A7\C3\89\C3\BA\C2\B3\C3\89\C2\BC\C2\A8\C2\B9\C3\9C\C3\80\C3\AD\C2\B3\C3\8C\C3\90\C3\B2\C2\A1\C2\AB\C3\9F\C3\B7\C2\A1\C2\AB\0A\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\88\C3\BD\C2\BF\C3\86\C2\B3\C3\89\C2\BC\C2\A8\C3\8A\C2\B1\C3\93\C3\83\C2\BF\C3\95\C2\B8\C3\B1\C2\BD\C2\AB\C3\86\C3\A4\C2\B7\C3\96\C2\BF\C2\AA\C2\A3\C2\AC\C3\90\C2\BB\C3\90\C2\BB\C2\A3\C2\A1\0A\C3\88\C3\A7\C3\91\C2\A7\C3\89\C3\BA\C3\8A\C3\BD\C3\81\C2\BF\C2\B2\C2\BB\C3\97\C3\A330\C3\88\C3\8B\C2\A3\C2\AC\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\88\C3\BD\C2\B8\C3\B6-1\0A\00"
@.str.1 = [51 x i8] c"=================================================\0A\00"
@.str.2 = [60 x i8] c"\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\91\C2\A7\C2\BA\C3\85\C3\8E\C2\AA%d\C2\B5\C3\84\C3\91\C2\A7\C3\89\C3\BA\C2\B5\C3\84\C3\88\C3\BD\C2\BF\C3\86\C2\B3\C3\89\C2\BC\C2\A8:\00"
@.str.3 = [7 x i8] c"%d%d%d\00"
@.str.4 = [73 x i8] c"\C3\91\C2\A7\C2\BA\C3\85\C3\8E\C2\AA%d\C2\B5\C3\84\C3\91\C2\A7\C3\89\C3\BA\C2\B5\C3\84\C3\97\C3\9C\C2\B7\C3\96\C3\8A\C3\87:%d\C2\A3\C2\AC\C3\86\C2\BD\C2\BE\C3\B9\C2\B7\C3\96\C3\8A\C3\87\C2\A3\C2\BA%d\0A\00"
@.str.5 = [32 x i8] c"\C3\88\C2\AB\C2\B0\C3\A0\C3\8D\C2\AC\C3\91\C2\A7\C2\B9\C2\B2\C2\BC\C3\86%d\C3\88\C3\8B\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [29 x i32]
%3 = alloca [29 x i32]
%4 = alloca [29 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([212 x i8], [212 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %5
br label %16
16: ; preds = %47, %0
%17 = load i32, i32* %5
%18 = icmp sle i32 %17, 29
br i1 %18, label %19, label %50
19: ; preds = %16
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32* %7, i32* %8, i32* %9)
%24 = load i32, i32* %7
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %33
26: ; preds = %19
%27 = load i32, i32* %8
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, i32* %9
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %33
32: ; preds = %29
br label %50
33: ; preds = %29, %26, %19
%34 = load i32, i32* %7
%35 = load i32, i32* %5
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %36
store i32 %34, i32* %37
%38 = load i32, i32* %8
%39 = load i32, i32* %5
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %40
store i32 %38, i32* %41
%42 = load i32, i32* %9
%43 = load i32, i32* %5
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [29 x i32], [29 x i32]* %4, i64 0, i64 %44
store i32 %42, i32* %45
br label %46
46: ; preds = %33
br label %47
47: ; preds = %46
%48 = load i32, i32* %5
%49 = add nsw i32 %48, 1
store i32 %49, i32* %5
br label %16
50: ; preds = %32, %16
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %6
br label %52
52: ; preds = %90, %50
%53 = load i32, i32* %6
%54 = load i32, i32* %5
%55 = sub nsw i32 %54, 1
%56 = icmp sle i32 %53, %55
br i1 %56, label %57, label %93
57: ; preds = %52
%58 = load i32, i32* %6
%59 = add nsw i32 %58, 1
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = add nsw i32 %63, %67
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [29 x i32], [29 x i32]* %4, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = add nsw i32 %68, %72
%74 = load i32, i32* %6
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = add nsw i32 %77, %81
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [29 x i32], [29 x i32]* %4, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = sdiv i32 %86, 3
%88 = add nsw i32 %82, %87
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %73, i32 %88)
br label %90
90: ; preds = %57
%91 = load i32, i32* %6
%92 = add nsw i32 %91, 1
store i32 %92, i32* %6
br label %52
93: ; preds = %52
store i32 0, i32* %13
br label %94
94: ; preds = %118, %93
%95 = load i32, i32* %13
%96 = load i32, i32* %5
%97 = sub nsw i32 %96, 1
%98 = icmp sle i32 %95, %97
br i1 %98, label %99, label %121
99: ; preds = %94
%100 = load i32, i32* %13
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %101
%103 = load i32, i32* %102
%104 = load i32, i32* %10
%105 = add nsw i32 %104, %103
store i32 %105, i32* %10
%106 = load i32, i32* %13
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %107
%109 = load i32, i32* %108
%110 = load i32, i32* %11
%111 = add nsw i32 %110, %109
store i32 %111, i32* %11
%112 = load i32, i32* %13
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [29 x i32], [29 x i32]* %4, i64 0, i64 %113
%115 = load i32, i32* %114
%116 = load i32, i32* %12
%117 = add nsw i32 %116, %115
store i32 %117, i32* %12
br label %118
118: ; preds = %99
%119 = load i32, i32* %13
%120 = add nsw i32 %119, 1
store i32 %120, i32* %13
br label %94
121: ; preds = %94
%122 = load i32, i32* %5
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %122)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [60 x i8] c"\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\91\C2\A7\C2\BA\C3\85\C3\8E\C2\AA%d\C2\B5\C3\84\C3\91\C2\A7\C3\89\C3\BA\C2\B5\C3\84\C3\88\C3\BD\C2\BF\C3\86\C2\B3\C3\89\C2\BC\C2\A8:\00"
@.str.3 = [7 x i8] c"%d%d%d\00"
@.str.4 = [73 x i8] c"\C3\91\C2\A7\C2\BA\C3\85\C3\8E\C2\AA%d\C2\B5\C3\84\C3\91\C2\A7\C3\89\C3\BA\C2\B5\C3\84\C3\97\C3\9C\C2\B7\C3\96\C3\8A\C3\87:%d\C2\A3\C2\AC\C3\86\C2\BD\C2\BE\C3\B9\C2\B7\C3\96\C3\8A\C3\87\C2\A3\C2\BA%d\0A\00"
@.str.5 = [32 x i8] c"\C3\88\C2\AB\C2\B0\C3\A0\C3\8D\C2\AC\C3\91\C2\A7\C2\B9\C2\B2\C2\BC\C3\86%d\C3\88\C3\8B\0A\00"
@str = [211 x i8] c"\C2\BB\C2\B6\C3\93\C2\AD\C3\8A\C2\B9\C3\93\C3\83\C3\83\C3\88\C3\83\C3\83\C3\96\C2\BD\C3\91\C2\A7\C3\89\C3\BA\C2\B3\C3\89\C2\BC\C2\A8\C2\B9\C3\9C\C3\80\C3\AD\C2\B3\C3\8C\C3\90\C3\B2\C2\A1\C2\AB\C3\9F\C3\B7\C2\A1\C2\AB\0A\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\88\C3\BD\C2\BF\C3\86\C2\B3\C3\89\C2\BC\C2\A8\C3\8A\C2\B1\C3\93\C3\83\C2\BF\C3\95\C2\B8\C3\B1\C2\BD\C2\AB\C3\86\C3\A4\C2\B7\C3\96\C2\BF\C2\AA\C2\A3\C2\AC\C3\90\C2\BB\C3\90\C2\BB\C2\A3\C2\A1\0A\C3\88\C3\A7\C3\91\C2\A7\C3\89\C3\BA\C3\8A\C3\BD\C3\81\C2\BF\C2\B2\C2\BB\C3\97\C3\A330\C3\88\C3\8B\C2\A3\C2\AC\C3\87\C3\AB\C3\8A\C3\A4\C3\88\C3\AB\C3\88\C3\BD\C2\B8\C3\B6-1\00"
@str.7 = [50 x i8] c"=================================================\00"
define i32 @main() {
%1 = alloca [29 x i32]
%2 = alloca [29 x i32]
%3 = alloca [29 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast [29 x i32]* %1 to i8*
%8 = bitcast [29 x i32]* %2 to i8*
%9 = bitcast [29 x i32]* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([211 x i8], [211 x i8]* @str, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.7, i64 0, i64 0))
br label %15
15: ; preds = %0, %29
%16 = phi i64 [ 0, %0 ], [ %17, %29 ]
%17 = add nuw nsw i64 %16, 1
%18 = trunc i64 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32* %4, i32* %5, i32* %6)
%21 = load i32, i32* %4
%22 = icmp eq i32 %21, -1
%23 = load i32, i32* %5
%24 = icmp eq i32 %23, -1
%25 = select i1 %22, i1 %24, i1 false
%26 = load i32, i32* %6
%27 = icmp eq i32 %26, -1
%28 = select i1 %25, i1 %27, i1 false
br i1 %28, label %36, label %29
29: ; preds = %15
%30 = getelementptr inbounds [29 x i32], [29 x i32]* %1, i64 0, i64 %16
store i32 %21, i32* %30
%31 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %16
store i32 %23, i32* %31
%32 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %16
store i32 %26, i32* %32
%33 = icmp eq i64 %17, 30
br i1 %33, label %34, label %15
34: ; preds = %29
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.7, i64 0, i64 0))
br label %40
36: ; preds = %15
%37 = trunc i64 %16 to i32
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.7, i64 0, i64 0))
%39 = icmp eq i32 %37, 0
br i1 %39, label %43, label %40
40: ; preds = %34, %36
%41 = phi i32 [ 30, %34 ], [ %37, %36 ]
%42 = zext i32 %41 to i64
br label %46
43: ; preds = %46, %36
%44 = phi i32 [ 0, %36 ], [ %41, %46 ]
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %44)
ret i32 0
46: ; preds = %40, %46
%47 = phi i64 [ 0, %40 ], [ %48, %46 ]
%48 = add nuw nsw i64 %47, 1
%49 = getelementptr inbounds [29 x i32], [29 x i32]* %1, i64 0, i64 %47
%50 = load i32, i32* %49
%51 = getelementptr inbounds [29 x i32], [29 x i32]* %2, i64 0, i64 %47
%52 = load i32, i32* %51
%53 = add nsw i32 %52, %50
%54 = getelementptr inbounds [29 x i32], [29 x i32]* %3, i64 0, i64 %47
%55 = load i32, i32* %54
%56 = add nsw i32 %53, %55
%57 = sdiv i32 %55, 3
%58 = add nsw i32 %57, %53
%59 = trunc i64 %48 to i32
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %56, i32 %58)
%61 = icmp eq i64 %48, %42
br i1 %61, label %43, label %46
}