#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 odo_solve(float ***, float ***, float **, int, int);
int /*<<< orphan*/ printf(char *, float, ...);
int solve(float ***, float **, int, int);
main() {
  float matrix[4][4];
  float eig[4][4];
  float vector[4];
  int i, j;
  for (i = 0; i < 4; i++)
    for (j = 0; j < 4; j++)
      matrix[i][j] = 0.;
  for (i = 0; i < 4; i++) {
    matrix[i][i] = 2.;
    if (i < 3) {
      matrix[i][i + 1] = 1.;
    }
    if (i > 1) {
      matrix[i - 1][i] = 1.;
    }
    vector[i] = 1.;
  }
  for (i = 0; i < 4; i++) {
    printf(" %f %f \n", matrix[i][i], vector[i]);
  }
  i = solve(&matrix, &vector, 4, 4);
  printf(" %d \n ", i);
  for (i = 0; i < 4; i++) {
    printf(" %f %f \n", matrix[i][i], vector[i]);
  }
  for (i = 0; i < 4; i++)
    for (j = 0; j < 4; j++)
      matrix[i][j] = 0.;
  for (i = 0; i < 4; i++) {
    matrix[i][i] = 2.;
    if (i < 3) {
      matrix[i][i + 1] = 1.;
    }
    if (i > 1) {
      matrix[i - 1][i] = 1.;
    }
    vector[i] = 1.;
  }
  for (i = 0; i < 4; i++) {
    printf(" %f %f \n", matrix[i][i], vector[i]);
  }
  i = odo_solve(&matrix, &eig, &vector, 4, 4);
  printf(" %d \n ", i);
  for (i = 0; i < 4; i++) {
    printf(" %f %f \n", matrix[i][i], vector[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    11be <main+0x8e>
movl   $0x0,-0xa8(%rbp)
cmpl   $0x4,-0xa8(%rbp)
jge    11a5 <main+0x75>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa8(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    1163 <main+0x33>
jmp    11aa <main+0x7a>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    114c <main+0x1c>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    1297 <main+0x167>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  0xe0a(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x3,-0xa4(%rbp)
jge    1233 <main+0x103>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  0xdd6(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x1,-0xa4(%rbp)
jle    126b <main+0x13b>
mov    -0xa4(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  0xd9e(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
movslq -0xa4(%rbp),%rax
movss  0xd8a(%rip),%xmm0
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    11c8 <main+0x98>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    1302 <main+0x1d2>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xa4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm1
ff ff
cvtss2sd %xmm1,%xmm1
lea    0xd21(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    12a1 <main+0x171>
lea    -0x50(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x4,%ecx
mov    %ecx,%edx
call   1030 <solve@plt>
mov    %eax,-0xa4(%rbp)
cvtsi2ssl -0xa4(%rbp),%xmm0
ff
lea    0xce3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    13a0 <main+0x270>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xa4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm1
ff ff
cvtss2sd %xmm1,%xmm1
lea    0xc83(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    133f <main+0x20f>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    141c <main+0x2ec>
movl   $0x0,-0xa8(%rbp)
cmpl   $0x4,-0xa8(%rbp)
jge    1403 <main+0x2d3>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa8(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    13c1 <main+0x291>
jmp    1408 <main+0x2d8>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    13aa <main+0x27a>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    14f5 <main+0x3c5>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  0xbac(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x3,-0xa4(%rbp)
jge    1491 <main+0x361>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    -0xa4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  0xb78(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
cmpl   $0x1,-0xa4(%rbp)
jle    14c9 <main+0x399>
mov    -0xa4(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  0xb40(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
movslq -0xa4(%rbp),%rax
movss  0xb2c(%rip),%xmm0
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1426 <main+0x2f6>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    1560 <main+0x430>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xa4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm1
ff ff
cvtss2sd %xmm1,%xmm1
lea    0xac3(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    14ff <main+0x3cf>
lea    -0x50(%rbp),%rdi
lea    -0x90(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
mov    $0x4,%r8d
mov    %r8d,%ecx
call   1050 <odo_solve@plt>
mov    %eax,-0xa4(%rbp)
cvtsi2ssl -0xa4(%rbp),%xmm0
ff
lea    0xa7c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x4,-0xa4(%rbp)
jge    1607 <main+0x4d7>
movslq -0xa4(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0xa4(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0xa4(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm1
ff ff
cvtss2sd %xmm1,%xmm1
lea    0xa1c(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    15a6 <main+0x476>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x90,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movabs $0x3f80000040000000,%r13
mov    %r13,0x10(%rsp)
mov    %r13,0x24(%rsp)
mov    %r13,0x38(%rsp)
movl   $0x40000000,0x4c(%rsp)
40
movaps 0xe81(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xe96(%rip),%rbx
movss  0xe7e(%rip),%xmm0
movsd  0xe7e(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
movss  0xe61(%rip),%xmm0
movsd  0xe61(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
movss  0xe47(%rip),%xmm0
movsd  0xe47(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
movss  0xe2d(%rip),%xmm0
movsd  0xe2d(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
lea    0x10(%rsp),%r15
mov    %rsp,%r14
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
mov    $0x4,%ecx
call   1030 <solve@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
lea    0xe0c(%rip),%r12
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x38(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x4c(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
mov    %r13,0x10(%rsp)
mov    %r13,0x24(%rsp)
mov    %r13,0x38(%rsp)
movl   $0x40000000,0x4c(%rsp)
40
movaps 0xd3d(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rbx,%rdi
movss  0xd3e(%rip),%xmm0
movsd  0xd3e(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x38(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x4c(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0x50(%rsp),%rsi
mov    %r15,%rdi
mov    %r14,%rdx
mov    $0x4,%ecx
mov    $0x4,%r8d
call   1050 <odo_solve@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
movss  (%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x24(%rsp),%xmm0
movss  0x4(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x38(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x4c(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c" %f %f \0A\00"
@.str.1 = [7 x i8] c" %d \0A \00"
define i32 @main() {
%1 = alloca [4 x [4 x float]]
%2 = bitcast [4 x [4 x float]]* %1 to i8*
%3 = alloca [4 x [4 x float]]
%4 = alloca <4 x float>
%5 = bitcast [4 x [4 x float]]* %3 to i8*
%6 = bitcast <4 x float>* %4 to i8*
%7 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 0, i64 0
store float 2.000000e+00, float* %7
%8 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 0, i64 1
store float 1.000000e+00, float* %8
%9 = getelementptr inbounds <4 x float>, <4 x float>* %4, i64 0, i64 0
%10 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 1, i64 1
store float 2.000000e+00, float* %10
%11 = getelementptr inbounds <4 x float>, <4 x float>* %4, i64 0, i64 1
%12 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 2, i64 2
store float 2.000000e+00, float* %12
%13 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 1, i64 2
store float 1.000000e+00, float* %13
%14 = getelementptr inbounds <4 x float>, <4 x float>* %4, i64 0, i64 2
%15 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 3, i64 3
store float 2.000000e+00, float* %15
%16 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 2, i64 3
store float 1.000000e+00, float* %16
%17 = getelementptr inbounds <4 x float>, <4 x float>* %4, i64 0, i64 3
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %4
%18 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float 2.000000e+00, double 1.000000e+00)
%19 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float 2.000000e+00, double 1.000000e+00)
%20 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float 2.000000e+00, double 1.000000e+00)
%21 = tail call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float 2.000000e+00, double 1.000000e+00)
%22 = bitcast [4 x [4 x float]]* %1 to float***
%23 = bitcast <4 x float>* %4 to float**
%24 = call i32 @solve(float*** %22, float** %23, i32 4, i32 4)
%25 = sitofp i32 %24 to float
%26 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %25)
%27 = load float, float* %7
%28 = load float, float* %9
%29 = fpext float %28 to double
%30 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %27, double %29)
%31 = load float, float* %10
%32 = load float, float* %11
%33 = fpext float %32 to double
%34 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %31, double %33)
%35 = load float, float* %12
%36 = load float, float* %14
%37 = fpext float %36 to double
%38 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %35, double %37)
%39 = load float, float* %15
%40 = load float, float* %17
%41 = fpext float %40 to double
%42 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %39, double %41)
store float 2.000000e+00, float* %7
%43 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 0, i64 1
store float 1.000000e+00, float* %43
store float 2.000000e+00, float* %10
store float 2.000000e+00, float* %12
%44 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 1, i64 2
store float 1.000000e+00, float* %44
store float 2.000000e+00, float* %15
%45 = getelementptr inbounds [4 x [4 x float]], [4 x [4 x float]]* %1, i64 0, i64 2, i64 3
store float 1.000000e+00, float* %45
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %4
%46 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float 2.000000e+00, double 1.000000e+00)
%47 = load float, float* %10
%48 = load float, float* %11
%49 = fpext float %48 to double
%50 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %47, double %49)
%51 = load float, float* %12
%52 = load float, float* %14
%53 = fpext float %52 to double
%54 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %51, double %53)
%55 = load float, float* %15
%56 = load float, float* %17
%57 = fpext float %56 to double
%58 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %55, double %57)
%59 = bitcast [4 x [4 x float]]* %3 to float***
%60 = call i32 @odo_solve(float*** %22, float*** %59, float** %23, i32 4, i32 4)
%61 = sitofp i32 %60 to float
%62 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %61)
%63 = load float, float* %7
%64 = load float, float* %9
%65 = fpext float %64 to double
%66 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %63, double %65)
%67 = load float, float* %10
%68 = load float, float* %11
%69 = fpext float %68 to double
%70 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %67, double %69)
%71 = load float, float* %12
%72 = load float, float* %14
%73 = fpext float %72 to double
%74 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %71, double %73)
%75 = load float, float* %15
%76 = load float, float* %17
%77 = fpext float %76 to double
%78 = call i32 (i8*, float, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float %75, double %77)
ret i32 0
}