#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 max(int, int);
int /*<<< orphan*/ printf(char *);
int main() {
  int a[5] = {0, 2, 3, 4, 5};
  int V[5][10];
  int sum = 9;
  int i, j;
  for (i = 0; i <= 4; i++)
    V[i][0] = 0;
  for (j = 0; j <= sum; j++)
    V[0][j] = 0;
  for (i = 1; i <= 4; i++) {
    for (j = 1; j <= sum; j++) {
      V[i][j] = V[i - 1][j];
      if (a[i] <= j)
        V[i][j] = max(V[i][j], V[i - 1][j - a[i]] + a[i]);
    }
  }
  for (i = 0; i <= 4; i++) {
    for (j = 0; j <= sum; j++)
      if (sum == V[i][j])
        printf("We find it!!!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec2(%rip),%eax
mov    %eax,-0x10(%rbp)
movl   $0x9,-0xf4(%rbp)
movl   $0x0,-0xf8(%rbp)
cmpl   $0x4,-0xf8(%rbp)
jg     11a1 <main+0x81>
movslq -0xf8(%rbp),%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movl   $0x0,(%rax)
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    1165 <main+0x45>
movl   $0x0,-0xfc(%rbp)
mov    -0xfc(%rbp),%eax
cmp    -0xf4(%rbp),%eax
jg     11e3 <main+0xc3>
movslq -0xfc(%rbp),%rax
movl   $0x0,-0xf0(%rbp,%rax,4)
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    11ab <main+0x8b>
movl   $0x1,-0xf8(%rbp)
cmpl   $0x4,-0xf8(%rbp)
jg     1323 <main+0x203>
movl   $0x1,-0xfc(%rbp)
mov    -0xfc(%rbp),%eax
cmp    -0xf4(%rbp),%eax
jg     130a <main+0x1ea>
mov    -0xf8(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0xf8(%rbp),%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movslq -0xf8(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
cmp    -0xfc(%rbp),%eax
jg     12f1 <main+0x1d1>
movslq -0xf8(%rbp),%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0xf8(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0xfc(%rbp),%ecx
movslq -0xf8(%rbp),%rdx
sub    -0x20(%rbp,%rdx,4),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
movslq -0xf8(%rbp),%rax
add    -0x20(%rbp,%rax,4),%esi
call   1040 <max@plt>
mov    %eax,%edx
movslq -0xf8(%rbp),%rcx
lea    -0xf0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0xfc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    12f6 <main+0x1d6>
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    1204 <main+0xe4>
jmp    130f <main+0x1ef>
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    11ed <main+0xcd>
movl   $0x0,-0xf8(%rbp)
cmpl   $0x4,-0xf8(%rbp)
jg     13bf <main+0x29f>
movl   $0x0,-0xfc(%rbp)
mov    -0xfc(%rbp),%eax
cmp    -0xf4(%rbp),%eax
jg     13a6 <main+0x286>
mov    -0xf4(%rbp),%eax
movslq -0xf8(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
imul   $0x28,%rdx,%rdx
add    %rdx,%rcx
movslq -0xfc(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jne    138d <main+0x26d>
lea    0xc8c(%rip),%rdi
call   1030 <printf@plt>
jmp    1392 <main+0x272>
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    1344 <main+0x224>
jmp    13ab <main+0x28b>
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    132d <main+0x20d>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
movl   $0x0,0x70(%rsp)
movl   $0x0,0x98(%rsp)
movl   $0x0,0xc0(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
xor    %r12d,%r12d
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,%r13d
mov    %eax,0x50(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,%r15d
mov    %eax,0x54(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,%r14d
mov    %eax,0x58(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,%ebp
mov    %eax,0x5c(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,%ebx
mov    %eax,0x60(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,0x4(%rsp)
mov    %eax,0x64(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,0xc(%rsp)
mov    %eax,0x68(%rsp)
xor    %edi,%edi
mov    $0x2,%esi
call   1040 <max@plt>
mov    %eax,0x10(%rsp)
mov    %eax,0x6c(%rsp)
movl   $0x0,0x74(%rsp)
mov    %r13d,0x78(%rsp)
mov    %r15d,%edi
mov    $0x3,%esi
call   1040 <max@plt>
mov    %rax,0xf0(%rsp)
mov    %eax,0x7c(%rsp)
mov    %r14d,%edi
mov    $0x3,%esi
call   1040 <max@plt>
mov    %eax,0x1c(%rsp)
mov    %eax,0x80(%rsp)
lea    0x3(%r13),%esi
mov    %ebp,%edi
call   1040 <max@plt>
mov    %eax,0x18(%rsp)
mov    %eax,0x84(%rsp)
add    $0x3,%r15d
mov    %ebx,%edi
mov    %r15d,%esi
call   1040 <max@plt>
mov    %eax,0x8(%rsp)
mov    %eax,0x88(%rsp)
add    $0x3,%r14d
mov    0x4(%rsp),%edi
mov    %r14d,%esi
call   1040 <max@plt>
mov    %eax,0x4(%rsp)
mov    %eax,0x8c(%rsp)
add    $0x3,%ebp
mov    0xc(%rsp),%edi
mov    %ebp,%esi
call   1040 <max@plt>
mov    %eax,0xc(%rsp)
mov    %eax,0x90(%rsp)
add    $0x3,%ebx
mov    0x10(%rsp),%edi
mov    %ebx,%esi
call   1040 <max@plt>
mov    %eax,0x10(%rsp)
mov    %eax,0x94(%rsp)
movl   $0x0,0x9c(%rsp)
mov    %r13,%rbp
mov    %r13,0xe8(%rsp)
mov    %ebp,0xa0(%rsp)
mov    0xf0(%rsp),%rbx
mov    %ebx,0xa4(%rsp)
mov    0x1c(%rsp),%r13d
mov    %r13d,%edi
mov    $0x4,%esi
call   1040 <max@plt>
mov    %eax,%r14d
mov    %eax,0xa8(%rsp)
mov    0x18(%rsp),%r15d
mov    %r15d,%edi
mov    $0x4,%esi
call   1040 <max@plt>
mov    %eax,0x14(%rsp)
mov    %eax,0xac(%rsp)
lea    0x4(%rbp),%esi
mov    0x8(%rsp),%edi
call   1040 <max@plt>
mov    %eax,0x8(%rsp)
mov    %eax,0xb0(%rsp)
lea    0x4(%rbx),%esi
mov    %rbx,%rbp
mov    0x4(%rsp),%edi
call   1040 <max@plt>
mov    %eax,0x4(%rsp)
mov    %eax,0xb4(%rsp)
add    $0x4,%r13d
mov    0xc(%rsp),%edi
mov    %r13d,%esi
call   1040 <max@plt>
mov    %eax,%r13d
mov    %eax,0xb8(%rsp)
add    $0x4,%r15d
mov    0x10(%rsp),%edi
mov    %r15d,%esi
call   1040 <max@plt>
mov    %eax,%r15d
mov    %eax,0xbc(%rsp)
movl   $0x0,0xc4(%rsp)
mov    0xe8(%rsp),%rbx
mov    %ebx,0xc8(%rsp)
mov    %ebp,0xcc(%rsp)
mov    %r14d,0xd0(%rsp)
mov    0x14(%rsp),%edi
mov    $0x5,%esi
call   1040 <max@plt>
mov    %eax,0xd4(%rsp)
mov    0x8(%rsp),%edi
mov    $0x5,%esi
call   1040 <max@plt>
mov    %eax,0xd8(%rsp)
mov    %rbx,%rsi
add    $0x5,%esi
mov    0x4(%rsp),%edi
call   1040 <max@plt>
mov    %eax,0xdc(%rsp)
add    $0x5,%ebp
mov    %r13d,%edi
mov    %ebp,%esi
call   1040 <max@plt>
mov    %eax,0xe0(%rsp)
add    $0x5,%r14d
mov    %r15d,%edi
mov    %r14d,%esi
call   1040 <max@plt>
mov    %eax,0xe4(%rsp)
mov    $0x28,%ebp
lea    0xbe0(%rip),%rbx
cmp    $0x9,%r12d
je     14a0 <main+0x380>
cs nopw 0x0(%rax,%rax,1)
cmpl   $0x9,-0x4(%rsp,%rbp,1)
je     14af <main+0x38f>
cmpl   $0x9,(%rsp,%rbp,1)
je     14bd <main+0x39d>
cmpl   $0x9,0x4(%rsp,%rbp,1)
je     14d0 <main+0x3b0>
cmpl   $0x9,0x8(%rsp,%rbp,1)
je     14e3 <main+0x3c3>
cmpl   $0x9,0xc(%rsp,%rbp,1)
je     14f6 <main+0x3d6>
cmpl   $0x9,0x10(%rsp,%rbp,1)
je     1509 <main+0x3e9>
cmpl   $0x9,0x14(%rsp,%rbp,1)
je     151c <main+0x3fc>
cmpl   $0x9,0x18(%rsp,%rbp,1)
je     152f <main+0x40f>
cmpl   $0x9,0x1c(%rsp,%rbp,1)
je     1542 <main+0x422>
cmp    $0xc8,%rbp
jne    1553 <main+0x433>
jmp    156b <main+0x44b>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,-0x4(%rsp,%rbp,1)
jne    1437 <main+0x317>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,(%rsp,%rbp,1)
jne    1441 <main+0x321>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x4(%rsp,%rbp,1)
jne    144c <main+0x32c>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x8(%rsp,%rbp,1)
jne    1457 <main+0x337>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0xc(%rsp,%rbp,1)
jne    1462 <main+0x342>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x10(%rsp,%rbp,1)
jne    146d <main+0x34d>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x14(%rsp,%rbp,1)
jne    1478 <main+0x358>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x18(%rsp,%rbp,1)
jne    1483 <main+0x363>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmpl   $0x9,0x1c(%rsp,%rbp,1)
jne    148e <main+0x36e>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmp    $0xc8,%rbp
je     156b <main+0x44b>
mov    0x20(%rsp,%rbp,1),%r12d
add    $0x28,%rbp
cmp    $0x9,%r12d
je     14a0 <main+0x380>
jmp    1430 <main+0x310>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.a = [5 x i32] [i32 0, i32 2, i32 3, i32 4, i32 5]
@.str = [15 x i8] c"We find it!!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [5 x [10 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = bitcast [5 x i32]* %2 to i8*
store i32 9, i32* %4
store i32 0, i32* %5
br label %8
8: ; preds = %16, %0
%9 = load i32, i32* %5
%10 = icmp sle i32 %9, 4
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %13
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %14, i64 0, i64 0
store i32 0, i32* %15
br label %16
16: ; preds = %11
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %8
19: ; preds = %8
store i32 0, i32* %6
br label %20
20: ; preds = %29, %19
%21 = load i32, i32* %6
%22 = load i32, i32* %4
%23 = icmp sle i32 %21, %22
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 0
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %25, i64 0, i64 %27
store i32 0, i32* %28
br label %29
29: ; preds = %24
%30 = load i32, i32* %6
%31 = add nsw i32 %30, 1
store i32 %31, i32* %6
br label %20
32: ; preds = %20
store i32 1, i32* %5
br label %33
33: ; preds = %100, %32
%34 = load i32, i32* %5
%35 = icmp sle i32 %34, 4
br i1 %35, label %36, label %103
36: ; preds = %33
store i32 1, i32* %6
br label %37
37: ; preds = %96, %36
%38 = load i32, i32* %6
%39 = load i32, i32* %4
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %99
41: ; preds = %37
%42 = load i32, i32* %5
%43 = sub nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %44
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x i32], [10 x i32]* %45, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %51
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %52, i64 0, i64 %54
store i32 %49, i32* %55
%56 = load i32, i32* %5
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %57
%59 = load i32, i32* %58
%60 = load i32, i32* %6
%61 = icmp sle i32 %59, %60
br i1 %61, label %62, label %95
62: ; preds = %41
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %64
%66 = load i32, i32* %6
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [10 x i32], [10 x i32]* %65, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = load i32, i32* %5
%71 = sub nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %72
%74 = load i32, i32* %6
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = sub nsw i32 %74, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10 x i32], [10 x i32]* %73, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = load i32, i32* %5
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = add nsw i32 %82, %86
%88 = call i32 @max(i32 %69, i32 %87)
%89 = load i32, i32* %5
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %90
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x i32], [10 x i32]* %91, i64 0, i64 %93
store i32 %88, i32* %94
br label %95
95: ; preds = %62, %41
br label %96
96: ; preds = %95
%97 = load i32, i32* %6
%98 = add nsw i32 %97, 1
store i32 %98, i32* %6
br label %37
99: ; preds = %37
br label %100
100: ; preds = %99
%101 = load i32, i32* %5
%102 = add nsw i32 %101, 1
store i32 %102, i32* %5
br label %33
103: ; preds = %33
store i32 0, i32* %5
br label %104
104: ; preds = %129, %103
%105 = load i32, i32* %5
%106 = icmp sle i32 %105, 4
br i1 %106, label %107, label %132
107: ; preds = %104
store i32 0, i32* %6
br label %108
108: ; preds = %125, %107
%109 = load i32, i32* %6
%110 = load i32, i32* %4
%111 = icmp sle i32 %109, %110
br i1 %111, label %112, label %128
112: ; preds = %108
%113 = load i32, i32* %4
%114 = load i32, i32* %5
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %3, i64 0, i64 %115
%117 = load i32, i32* %6
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [10 x i32], [10 x i32]* %116, i64 0, i64 %118
%120 = load i32, i32* %119
%121 = icmp eq i32 %113, %120
br i1 %121, label %122, label %124
122: ; preds = %112
%123 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %124
124: ; preds = %122, %112
br label %125
125: ; preds = %124
%126 = load i32, i32* %6
%127 = add nsw i32 %126, 1
store i32 %127, i32* %6
br label %108
128: ; preds = %108
br label %129
129: ; preds = %128
%130 = load i32, i32* %5
%131 = add nsw i32 %130, 1
store i32 %131, i32* %5
br label %104
132: ; preds = %104
ret i32 0
}

LLVM IR (-O2):
@str = [14 x i8] c"We find it!!!\00"
define i32 @main() {
%1 = alloca [5 x [10 x i32]]
%2 = bitcast [5 x [10 x i32]]* %1 to i8*
%3 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 0
store i32 0, i32* %3
%4 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 0
store i32 0, i32* %4
%5 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 0
store i32 0, i32* %5
%6 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 2
%7 = bitcast [5 x [10 x i32]]* %1 to i8*
%8 = tail call i32 @max(i32 0, i32 2)
store i32 %8, i32* %6
%9 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 3
%10 = tail call i32 @max(i32 0, i32 2)
store i32 %10, i32* %9
%11 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 4
%12 = tail call i32 @max(i32 0, i32 2)
store i32 %12, i32* %11
%13 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 5
%14 = tail call i32 @max(i32 0, i32 2)
store i32 %14, i32* %13
%15 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 6
%16 = tail call i32 @max(i32 0, i32 2)
store i32 %16, i32* %15
%17 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 7
%18 = tail call i32 @max(i32 0, i32 2)
store i32 %18, i32* %17
%19 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 8
%20 = tail call i32 @max(i32 0, i32 2)
store i32 %20, i32* %19
%21 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 1, i64 9
%22 = tail call i32 @max(i32 0, i32 2)
store i32 %22, i32* %21
%23 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 1
store i32 0, i32* %23
%24 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 2
store i32 %8, i32* %24
%25 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 3
%26 = tail call i32 @max(i32 %10, i32 3)
store i32 %26, i32* %25
%27 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 4
%28 = tail call i32 @max(i32 %12, i32 3)
store i32 %28, i32* %27
%29 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 5
%30 = add nsw i32 %8, 3
%31 = tail call i32 @max(i32 %14, i32 %30)
store i32 %31, i32* %29
%32 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 6
%33 = add nsw i32 %10, 3
%34 = tail call i32 @max(i32 %16, i32 %33)
store i32 %34, i32* %32
%35 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 7
%36 = add nsw i32 %12, 3
%37 = tail call i32 @max(i32 %18, i32 %36)
store i32 %37, i32* %35
%38 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 8
%39 = add nsw i32 %14, 3
%40 = tail call i32 @max(i32 %20, i32 %39)
store i32 %40, i32* %38
%41 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 2, i64 9
%42 = add nsw i32 %16, 3
%43 = tail call i32 @max(i32 %22, i32 %42)
store i32 %43, i32* %41
%44 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 1
store i32 0, i32* %44
%45 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 2
store i32 %8, i32* %45
%46 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 3
store i32 %26, i32* %46
%47 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 4
%48 = tail call i32 @max(i32 %28, i32 4)
store i32 %48, i32* %47
%49 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 5
%50 = tail call i32 @max(i32 %31, i32 4)
store i32 %50, i32* %49
%51 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 6
%52 = add nsw i32 %8, 4
%53 = tail call i32 @max(i32 %34, i32 %52)
store i32 %53, i32* %51
%54 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 7
%55 = add nsw i32 %26, 4
%56 = tail call i32 @max(i32 %37, i32 %55)
store i32 %56, i32* %54
%57 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 8
%58 = add nsw i32 %28, 4
%59 = tail call i32 @max(i32 %40, i32 %58)
store i32 %59, i32* %57
%60 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 3, i64 9
%61 = add nsw i32 %31, 4
%62 = tail call i32 @max(i32 %43, i32 %61)
store i32 %62, i32* %60
%63 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 1
store i32 0, i32* %63
%64 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 2
store i32 %8, i32* %64
%65 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 3
store i32 %26, i32* %65
%66 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 4
store i32 %48, i32* %66
%67 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 5
%68 = tail call i32 @max(i32 %50, i32 5)
store i32 %68, i32* %67
%69 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 6
%70 = tail call i32 @max(i32 %53, i32 5)
store i32 %70, i32* %69
%71 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 7
%72 = add nsw i32 %8, 5
%73 = tail call i32 @max(i32 %56, i32 %72)
store i32 %73, i32* %71
%74 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 8
%75 = add nsw i32 %26, 5
%76 = tail call i32 @max(i32 %59, i32 %75)
store i32 %76, i32* %74
%77 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 4, i64 9
%78 = add nsw i32 %48, 5
%79 = tail call i32 @max(i32 %62, i32 %78)
store i32 %79, i32* %77
br label %80
80: ; preds = %143, %0
%81 = phi i32 [ 0, %0 ], [ %145, %143 ]
%82 = phi i64 [ 0, %0 ], [ %141, %143 ]
%83 = icmp eq i32 %81, 9
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %86
86: ; preds = %80, %84
%87 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 1
%88 = load i32, i32* %87
%89 = icmp eq i32 %88, 9
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 2
%94 = load i32, i32* %93
%95 = icmp eq i32 %94, 9
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %98
98: ; preds = %96, %92
%99 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 3
%100 = load i32, i32* %99
%101 = icmp eq i32 %100, 9
br i1 %101, label %102, label %104
102: ; preds = %98
%103 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %104
104: ; preds = %102, %98
%105 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 4
%106 = load i32, i32* %105
%107 = icmp eq i32 %106, 9
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %110
110: ; preds = %108, %104
%111 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 5
%112 = load i32, i32* %111
%113 = icmp eq i32 %112, 9
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %116
116: ; preds = %114, %110
%117 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 6
%118 = load i32, i32* %117
%119 = icmp eq i32 %118, 9
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %122
122: ; preds = %120, %116
%123 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 7
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 9
br i1 %125, label %126, label %128
126: ; preds = %122
%127 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %128
128: ; preds = %126, %122
%129 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 8
%130 = load i32, i32* %129
%131 = icmp eq i32 %130, 9
br i1 %131, label %132, label %134
132: ; preds = %128
%133 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %134
134: ; preds = %132, %128
%135 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %82, i64 9
%136 = load i32, i32* %135
%137 = icmp eq i32 %136, 9
br i1 %137, label %138, label %140
138: ; preds = %134
%139 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %140
140: ; preds = %138, %134
%141 = add nuw nsw i64 %82, 1
%142 = icmp eq i64 %141, 5
br i1 %142, label %146, label %143
143: ; preds = %140
%144 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %1, i64 0, i64 %141, i64 0
%145 = load i32, i32* %144
br label %80
146: ; preds = %140
ret i32 0
}