#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 */
double **dmatrix(int, int);
int /*<<< orphan*/ free_matrix(void **);
int /*<<< orphan*/ printf(char *, int, int, char, char);
int strlen(char *);
int main(int argc, char *argv[]) {
  char A[] = "nematode knowledge";
  char B[] = "empty bottle";
  int m, n;
  int i, j;
  double **F;
  m = strlen(A);
  n = strlen(B);
  F = dmatrix(m + 1, n + 1);
  for (i = m - 1; i >= 0; i--) {
    for (j = n - 1; j >= 0; j--) {
      if (A[i] == B[j]) {
        F[i][j] = F[i + 1][j + 1] + 1;
      } else if (F[i + 1][j] >= F[i][j + 1]) {
        F[i][j] = F[i + 1][j];
      } else {
        F[i][j] = F[i][j + 1];
      }
    }
  }
  i = 0;
  j = 0;
  while (i < m && j < n) {
    if (A[i] == B[j]) {
      printf("%d  %d  %c %c \n", i + 1, j + 1, A[i], B[j]);
      i++;
      j++;
    } else if (F[i + 1][j] >= F[i][j + 1]) {
      i++;
    } else {
      j++;
    }
  }
  free_matrix((void **)F);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xead(%rip),%ax
mov    %ax,-0x20(%rbp)
mov    0xea5(%rip),%al
mov    %al,-0x1e(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x3d(%rbp)
mov    0xe9a(%rip),%eax
mov    %eax,-0x35(%rbp)
mov    0xe95(%rip),%al
mov    %al,-0x31(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x44(%rbp)
lea    -0x3d(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%edi
add    $0x1,%edi
mov    -0x48(%rbp),%esi
add    $0x1,%esi
call   1060 <dmatrix@plt>
mov    %rax,-0x58(%rbp)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jl     1313 <main+0x1d3>
mov    -0x48(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
jl     1300 <main+0x1c0>
movslq -0x4c(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%eax
movslq -0x50(%rbp),%rcx
movsbl -0x3d(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    124b <main+0x10b>
mov    -0x58(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xdd4(%rip),%xmm0
addsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    12ed <main+0x1ad>
mov    -0x58(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jb     12b9 <main+0x179>
mov    -0x58(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    12e8 <main+0x1a8>
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    12ed <main+0x1ad>
jmp    12f2 <main+0x1b2>
mov    -0x50(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x50(%rbp)
jmp    11e6 <main+0xa6>
jmp    1305 <main+0x1c5>
mov    -0x4c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4c(%rbp)
jmp    11d3 <main+0x93>
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x4c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x44(%rbp),%ecx
mov    %al,-0x59(%rbp)
jge    133e <main+0x1fe>
mov    -0x50(%rbp),%eax
cmp    -0x48(%rbp),%eax
setl   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    134e <main+0x20e>
jmp    1407 <main+0x2c7>
movslq -0x4c(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%eax
movslq -0x50(%rbp),%rcx
movsbl -0x3d(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    13ac <main+0x26c>
mov    -0x4c(%rbp),%esi
add    $0x1,%esi
mov    -0x50(%rbp),%edx
add    $0x1,%edx
movslq -0x4c(%rbp),%rax
mov    -0x30(%rbp,%rax,1),%cl
movslq -0x50(%rbp),%rax
lea    0xca9(%rip),%rdi
movsbl %cl,%ecx
movsbl -0x3d(%rbp,%rax,1),%r8d
call   1050 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1402 <main+0x2c2>
mov    -0x58(%rbp),%rax
mov    -0x4c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x50(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jb     13f4 <main+0x2b4>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    13fd <main+0x2bd>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1402 <main+0x2c2>
jmp    1321 <main+0x1e1>
mov    -0x58(%rbp),%rdi
call   1030 <free_matrix@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movapd 0xeba(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
movl   $0x656764,0x1f(%rsp)
movabs $0x656c74746f6220,%rax
mov    %rax,0x5(%rsp)
movabs $0x6f62207974706d65,%rax
20 62 6f
mov    %rax,(%rsp)
lea    0x10(%rsp),%rdi
call   1040 <strlen@plt>
mov    %eax,%r14d
mov    %rsp,%rdi
call   1040 <strlen@plt>
mov    %eax,%r15d
lea    0x1(%r14),%edi
lea    0x1(%r15),%esi
call   1060 <dmatrix@plt>
mov    %rax,%rbx
test   %r14d,%r14d
jle    12af <main+0x16f>
mov    %r15d,%r8d
mov    %r14d,%ecx
add    $0x1,%r8
movsd  0xe3c(%rip),%xmm0
jmp    11d6 <main+0x96>
cs nopw 0x0(%rax,%rax,1)
cmp    $0x2,%rdx
jl     1236 <main+0xf6>
mov    %rcx,%rdx
add    $0xffffffffffffffff,%rcx
test   %r15d,%r15d
jle    11d0 <main+0x90>
mov    (%rbx,%rdx,8),%rsi
mov    %r8,%rdi
jmp    120d <main+0xcd>
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rsi,%rdi,8),%xmm1
addsd  %xmm0,%xmm1
mov    (%rbx,%rcx,8),%rax
movsd  %xmm1,(%rax,%rbp,8)
add    $0xffffffffffffffff,%rdi
cmp    $0x1,%rdi
jle    11d0 <main+0x90>
lea    -0x2(%rdi),%ebp
movzbl 0x10(%rsp,%rcx,1),%eax
cmp    (%rsp,%rbp,1),%al
je     11f0 <main+0xb0>
movsd  (%rsi,%rbp,8),%xmm1
mov    (%rbx,%rcx,8),%rax
movsd  -0x8(%rax,%rdi,8),%xmm2
ucomisd %xmm2,%xmm1
jae    11fe <main+0xbe>
movsd  %xmm2,(%rax,%rbp,8)
jmp    1203 <main+0xc3>
test   %r14d,%r14d
jle    12af <main+0x16f>
test   %r15d,%r15d
jle    12af <main+0x16f>
xor    %eax,%eax
lea    0xde7(%rip),%r12
xor    %r13d,%r13d
jmp    125e <main+0x11e>
xchg   %ax,%ax
add    $0x1,%r13d
cmp    %r14d,%eax
jge    12af <main+0x16f>
cmp    %r15d,%r13d
jge    12af <main+0x16f>
movslq %eax,%rcx
movzbl 0x10(%rsp,%rcx,1),%edx
movslq %r13d,%rsi
lea    0x1(%rcx),%ebp
cmp    (%rsp,%rsi,1),%dl
jne    1290 <main+0x150>
add    $0x1,%r13d
movsbl %dl,%ecx
mov    %r12,%rdi
mov    %ebp,%esi
mov    %r13d,%edx
mov    %ecx,%r8d
call   1050 <printf@plt>
jmp    12a8 <main+0x168>
nopw   0x0(%rax,%rax,1)
movslq %ebp,%rdx
mov    (%rbx,%rdx,8),%rdx
movsd  (%rdx,%rsi,8),%xmm0
mov    (%rbx,%rcx,8),%rcx
ucomisd 0x8(%rcx,%rsi,8),%xmm0
jb     1250 <main+0x110>
mov    %ebp,%eax
cmp    %r14d,%eax
jl     1259 <main+0x119>
mov    %rbx,%rdi
call   1030 <free_matrix@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.A = [19 x i8] c"nematode knowledge\00"
@__const.main.B = [13 x i8] c"empty bottle\00"
@.str = [16 x i8] c"%d %d %c %c \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [19 x i8]
%7 = alloca [13 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = bitcast [19 x i8]* %6 to i8*
%14 = bitcast [13 x i8]* %7 to i8*
%15 = getelementptr inbounds [19 x i8], [19 x i8]* %6, i64 0, i64 0
%16 = call i32 @strlen(i8* %15)
store i32 %16, i32* %8
%17 = getelementptr inbounds [13 x i8], [13 x i8]* %7, i64 0, i64 0
%18 = call i32 @strlen(i8* %17)
store i32 %18, i32* %9
%19 = load i32, i32* %8
%20 = add nsw i32 %19, 1
%21 = load i32, i32* %9
%22 = add nsw i32 %21, 1
%23 = call double** @dmatrix(i32 %20, i32 %22)
store double** %23, double*** %12
%24 = load i32, i32* %8
%25 = sub nsw i32 %24, 1
store i32 %25, i32* %10
br label %26
26: ; preds = %134, %2
%27 = load i32, i32* %10
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %137
29: ; preds = %26
%30 = load i32, i32* %9
%31 = sub nsw i32 %30, 1
store i32 %31, i32* %11
br label %32
32: ; preds = %130, %29
%33 = load i32, i32* %11
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %133
35: ; preds = %32
%36 = load i32, i32* %10
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [19 x i8], [19 x i8]* %6, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = load i32, i32* %11
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [13 x i8], [13 x i8]* %7, i64 0, i64 %42
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %40, %45
br i1 %46, label %47, label %68
47: ; preds = %35
%48 = load double**, double*** %12
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double*, double** %48, i64 %51
%53 = load double*, double** %52
%54 = load i32, i32* %11
%55 = add nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %53, i64 %56
%58 = load double, double* %57
%59 = fadd double %58, 1.000000e+00
%60 = load double**, double*** %12
%61 = load i32, i32* %10
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double*, double** %60, i64 %62
%64 = load double*, double** %63
%65 = load i32, i32* %11
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double %59, double* %67
br label %129
68: ; preds = %35
%69 = load double**, double*** %12
%70 = load i32, i32* %10
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double*, double** %69, i64 %72
%74 = load double*, double** %73
%75 = load i32, i32* %11
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %74, i64 %76
%78 = load double, double* %77
%79 = load double**, double*** %12
%80 = load i32, i32* %10
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double*, double** %79, i64 %81
%83 = load double*, double** %82
%84 = load i32, i32* %11
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %83, i64 %86
%88 = load double, double* %87
%89 = fcmp oge double %78, %88
br i1 %89, label %90, label %109
90: ; preds = %68
%91 = load double**, double*** %12
%92 = load i32, i32* %10
%93 = add nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double*, double** %91, i64 %94
%96 = load double*, double** %95
%97 = load i32, i32* %11
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
%100 = load double, double* %99
%101 = load double**, double*** %12
%102 = load i32, i32* %10
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double*, double** %101, i64 %103
%105 = load double*, double** %104
%106 = load i32, i32* %11
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
store double %100, double* %108
br label %128
109: ; preds = %68
%110 = load double**, double*** %12
%111 = load i32, i32* %10
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double*, double** %110, i64 %112
%114 = load double*, double** %113
%115 = load i32, i32* %11
%116 = add nsw i32 %115, 1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, double* %114, i64 %117
%119 = load double, double* %118
%120 = load double**, double*** %12
%121 = load i32, i32* %10
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double*, double** %120, i64 %122
%124 = load double*, double** %123
%125 = load i32, i32* %11
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
store double %119, double* %127
br label %128
128: ; preds = %109, %90
br label %129
129: ; preds = %128, %47
br label %130
130: ; preds = %129
%131 = load i32, i32* %11
%132 = add nsw i32 %131, -1
store i32 %132, i32* %11
br label %32
133: ; preds = %32
br label %134
134: ; preds = %133
%135 = load i32, i32* %10
%136 = add nsw i32 %135, -1
store i32 %136, i32* %10
br label %26
137: ; preds = %26
store i32 0, i32* %10
store i32 0, i32* %11
br label %138
138: ; preds = %207, %137
%139 = load i32, i32* %10
%140 = load i32, i32* %8
%141 = icmp slt i32 %139, %140
br i1 %141, label %142, label %146
142: ; preds = %138
%143 = load i32, i32* %11
%144 = load i32, i32* %9
%145 = icmp slt i32 %143, %144
br label %146
146: ; preds = %142, %138
%147 = phi i1 [ false, %138 ], [ %145, %142 ]
br i1 %147, label %148, label %208
148: ; preds = %146
%149 = load i32, i32* %10
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [19 x i8], [19 x i8]* %6, i64 0, i64 %150
%152 = load i8, i8* %151
%153 = sext i8 %152 to i32
%154 = load i32, i32* %11
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [13 x i8], [13 x i8]* %7, i64 0, i64 %155
%157 = load i8, i8* %156
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %153, %158
br i1 %159, label %160, label %178
160: ; preds = %148
%161 = load i32, i32* %10
%162 = add nsw i32 %161, 1
%163 = load i32, i32* %11
%164 = add nsw i32 %163, 1
%165 = load i32, i32* %10
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [19 x i8], [19 x i8]* %6, i64 0, i64 %166
%168 = load i8, i8* %167
%169 = load i32, i32* %11
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [13 x i8], [13 x i8]* %7, i64 0, i64 %170
%172 = load i8, i8* %171
%173 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %162, i32 %164, i8 signext %168, i8 signext %172)
%174 = load i32, i32* %10
%175 = add nsw i32 %174, 1
store i32 %175, i32* %10
%176 = load i32, i32* %11
%177 = add nsw i32 %176, 1
store i32 %177, i32* %11
br label %207
178: ; preds = %148
%179 = load double**, double*** %12
%180 = load i32, i32* %10
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double*, double** %179, i64 %182
%184 = load double*, double** %183
%185 = load i32, i32* %11
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %184, i64 %186
%188 = load double, double* %187
%189 = load double**, double*** %12
%190 = load i32, i32* %10
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds double*, double** %189, i64 %191
%193 = load double*, double** %192
%194 = load i32, i32* %11
%195 = add nsw i32 %194, 1
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, double* %193, i64 %196
%198 = load double, double* %197
%199 = fcmp oge double %188, %198
br i1 %199, label %200, label %203
200: ; preds = %178
%201 = load i32, i32* %10
%202 = add nsw i32 %201, 1
store i32 %202, i32* %10
br label %206
203: ; preds = %178
%204 = load i32, i32* %11
%205 = add nsw i32 %204, 1
store i32 %205, i32* %11
br label %206
206: ; preds = %203, %200
br label %207
207: ; preds = %206, %160
br label %138
208: ; preds = %146
%209 = load double**, double*** %12
%210 = bitcast double** %209 to i8**
%211 = call i32 @free_matrix(i8** %210)
ret i32 0
}

LLVM IR (-O2):
@__const.main.A = [19 x i8] c"nematode knowledge\00"
@__const.main.B = [13 x i8] c"empty bottle\00"
@.str = [16 x i8] c"%d %d %c %c \0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [19 x i8]
%4 = alloca [13 x i8]
%5 = getelementptr inbounds [19 x i8], [19 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [13 x i8], [13 x i8]* %4, i64 0, i64 0
%7 = call i32 @strlen(i8* %5)
%8 = call i32 @strlen(i8* %6)
%9 = add nsw i32 %7, 1
%10 = add nsw i32 %8, 1
%11 = call double** @dmatrix(i32 %9, i32 %10)
%12 = icmp sgt i32 %7, 0
br i1 %12, label %13, label %91
13: ; preds = %2
%14 = icmp sgt i32 %8, 0
%15 = zext i32 %8 to i64
%16 = zext i32 %7 to i64
br label %19
17: ; preds = %54, %19
%18 = icmp sgt i64 %20, 1
br i1 %18, label %19, label %27
19: ; preds = %13, %17
%20 = phi i64 [ %16, %13 ], [ %21, %17 ]
%21 = add nsw i64 %20, -1
br i1 %14, label %22, label %17
22: ; preds = %19
%23 = getelementptr inbounds [19 x i8], [19 x i8]* %3, i64 0, i64 %21
%24 = getelementptr inbounds double*, double** %11, i64 %20
%25 = getelementptr inbounds double*, double** %11, i64 %21
%26 = load double*, double** %24
br label %30
27: ; preds = %17
%28 = icmp sgt i32 %8, 0
%29 = select i1 %12, i1 %28, i1 false
br i1 %29, label %56, label %91
30: ; preds = %22, %54
%31 = phi i64 [ %15, %22 ], [ %32, %54 ]
%32 = add nsw i64 %31, -1
%33 = load i8, i8* %23
%34 = and i64 %32, 4294967295
%35 = getelementptr inbounds [13 x i8], [13 x i8]* %4, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = icmp eq i8 %33, %36
br i1 %37, label %38, label %44
38: ; preds = %30
%39 = getelementptr inbounds double, double* %26, i64 %31
%40 = load double, double* %39
%41 = fadd double %40, 1.000000e+00
%42 = load double*, double** %25
%43 = getelementptr inbounds double, double* %42, i64 %34
store double %41, double* %43
br label %54
44: ; preds = %30
%45 = getelementptr inbounds double, double* %26, i64 %34
%46 = load double, double* %45
%47 = load double*, double** %25
%48 = getelementptr inbounds double, double* %47, i64 %31
%49 = load double, double* %48
%50 = fcmp ult double %46, %49
%51 = getelementptr inbounds double, double* %47, i64 %34
br i1 %50, label %53, label %52
52: ; preds = %44
store double %46, double* %51
br label %54
53: ; preds = %44
store double %49, double* %51
br label %54
54: ; preds = %38, %53, %52
%55 = icmp sgt i64 %31, 1
br i1 %55, label %30, label %17
56: ; preds = %27, %85
%57 = phi i32 [ %87, %85 ], [ 0, %27 ]
%58 = phi i32 [ %86, %85 ], [ 0, %27 ]
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds [19 x i8], [19 x i8]* %3, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = sext i32 %58 to i64
%63 = getelementptr inbounds [13 x i8], [13 x i8]* %4, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = icmp eq i8 %61, %64
%66 = add nsw i32 %57, 1
br i1 %65, label %67, label %70
67: ; preds = %56
%68 = add nsw i32 %58, 1
%69 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %66, i32 %68, i8 signext %61, i8 signext %61)
br label %85
70: ; preds = %56
%71 = sext i32 %66 to i64
%72 = getelementptr inbounds double*, double** %11, i64 %71
%73 = load double*, double** %72
%74 = getelementptr inbounds double, double* %73, i64 %62
%75 = load double, double* %74
%76 = getelementptr inbounds double*, double** %11, i64 %59
%77 = load double*, double** %76
%78 = add nsw i32 %58, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
%81 = load double, double* %80
%82 = fcmp ult double %75, %81
%83 = select i1 %82, i32 %78, i32 %58
%84 = select i1 %82, i32 %57, i32 %66
br label %85
85: ; preds = %70, %67
%86 = phi i32 [ %68, %67 ], [ %83, %70 ]
%87 = phi i32 [ %66, %67 ], [ %84, %70 ]
%88 = icmp slt i32 %87, %7
%89 = icmp slt i32 %86, %8
%90 = select i1 %88, i1 %89, i1 false
br i1 %90, label %56, label %91
91: ; preds = %85, %2, %27
%92 = bitcast double** %11 to i8**
%93 = call i32 @free_matrix(i8** %92)
ret i32 0
}