#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 celcon_get_inner_normal(int, int, double *);
int celcon_get_lifted_point(int, int, int, double *);
int celcon_length_of_supports(int *, int *);
double inner_product(int, double *, double *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int write_inner_products(int n, int r, int k) {
  int fail, i, j, kk;
  int nl[r];
  double normal[n], point[n], prod, minprod;
  char ch;
  fail = celcon_get_inner_normal(n, k, normal);
  if (fail == 1)
    printf("an error happened...\n");
  else {
    printf("inner normal for cell %d :\n", k);
    for (i = 0; i < n; i++)
      printf("%.15le\n", normal[i]);
    printf("Hit enter to continue.");
    scanf("%c", &ch);
    printf("\ncomputing the inner products with all points ...\n");
    fail = celcon_length_of_supports(&r, nl);
    for (i = 0; i < r; i++) {
      printf("support %d :\n", i);
      for (j = 0; j < nl[i]; j++) {
        fail = celcon_get_lifted_point(n, i + 1, j + 1, point);
        for (kk = 0; kk < n - 1; kk++)
          printf(" %d", (int)point[kk]);
        prod = inner_product(n, normal, point);
        printf(" : %.15le\n", prod);
        if (j == 0)
          minprod = prod;
        else if (prod < minprod)
          minprod = prod;
      }
      printf("-> support %d has minimal product : %.15le\n", i, minprod);
    }
  }
  return fail;
}


x86 assembly (clang, -O0):
<write_inner_products>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x70(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rcx
sub    %rsi,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <celcon_get_inner_normal@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x1,-0x10(%rbp)
jne    1203 <write_inner_products+0xa3>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13c7 <write_inner_products+0x267>
mov    -0xc(%rbp),%esi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1250 <write_inner_products+0xf0>
mov    -0x68(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xe7a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    121b <write_inner_products+0xbb>
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xde4(%rip),%rdi
lea    -0x51(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%rsi
lea    -0x8(%rbp),%rdi
call   1060 <celcon_length_of_supports@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13c2 <write_inner_products+0x262>
mov    -0x14(%rbp),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x70(%rbp),%rcx
mov    -0x18(%rbp),%eax
movslq -0x14(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    139e <write_inner_products+0x23e>
mov    -0x60(%rbp),%rcx
mov    -0x4(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x18(%rbp),%edx
add    $0x1,%edx
call   1070 <celcon_get_lifted_point@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1327 <write_inner_products+0x1c7>
mov    -0x60(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cvttsd2si (%rax,%rcx,8),%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12ed <write_inner_products+0x18d>
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rsi
mov    -0x4(%rbp),%edi
call   1040 <inner_product@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
lea    0xd6a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x18(%rbp)
jne    1368 <write_inner_products+0x208>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    138b <write_inner_products+0x22b>
movsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1386 <write_inner_products+0x226>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    138b <write_inner_products+0x22b>
jmp    1390 <write_inner_products+0x230>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12b7 <write_inner_products+0x157>
mov    -0x14(%rbp),%esi
movsd  -0x50(%rbp),%xmm0
lea    0xce4(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1293 <write_inner_products+0x133>
jmp    13c7 <write_inner_products+0x267>
mov    -0x10(%rbp),%eax
mov    -0x28(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_inner_products>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %edx,%r14d
mov    %edi,%r12d
mov    %esi,-0x30(%rbp)
mov    %esi,%eax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %edi,%r15d
mov    %rsp,%r13
lea    0xf(,%r15,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %edx,%esi
mov    %r13,%rdx
call   1040 <celcon_get_inner_normal@plt>
cmp    $0x1,%eax
jne    11ed <write_inner_products+0x7d>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,-0x2c(%rbp)
jmp    13bf <write_inner_products+0x24f>
lea    0xe0c(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,-0x58(%rbp)
test   %r12d,%r12d
jle    123a <write_inner_products+0xca>
xor    %r12d,%r12d
lea    0xe5b(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13,%r12,8),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x1,%r12
cmp    %r12,%r15
jne    1220 <write_inner_products+0xb0>
lea    0xddb(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xde4(%rip),%rdi
lea    -0x31(%rbp),%rsi
call   1090 <scanf@plt>
lea    0xe15(%rip),%rdi
call   1030 <puts@plt>
lea    -0x30(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1070 <celcon_length_of_supports@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x30(%rbp)
jle    13bf <write_inner_products+0x24f>
mov    -0x58(%rbp),%r12
lea    -0x1(%r12),%r15d
lea    0xdb6(%rip),%r14
xor    %ecx,%ecx
mov    %r13,-0x70(%rbp)
jmp    12c7 <write_inner_products+0x157>
cs nopw 0x0(%rax,%rax,1)
lea    0xda1(%rip),%rdi
movsd  -0x50(%rbp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movslq -0x30(%rbp),%rax
mov    -0x60(%rbp),%rdx
mov    %rdx,%rcx
cmp    %rax,%rdx
jge    13bf <write_inner_products+0x24f>
mov    %rcx,-0x40(%rbp)
lea    0xd64(%rip),%rdi
mov    -0x40(%rbp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0x1(%rsi),%rax
mov    %rax,-0x60(%rbp)
mov    -0x48(%rbp),%rax
cmpl   $0x0,(%rax,%rsi,4)
jle    12a0 <write_inner_products+0x130>
xor    %r13d,%r13d
jmp    1318 <write_inner_products+0x1a8>
nopl   0x0(%rax,%rax,1)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
cmp    (%rax,%rsi,4),%r13d
jge    12a0 <write_inner_products+0x130>
mov    %r13d,%ecx
mov    %rcx,-0x78(%rbp)
lea    0x1(%rcx),%r13d
mov    %r12d,%edi
mov    -0x60(%rbp),%rsi
mov    %r13d,%edx
mov    %rbx,%rcx
call   1080 <celcon_get_lifted_point@plt>
mov    %eax,-0x2c(%rbp)
cmp    $0x2,%r12d
jl     1369 <write_inner_products+0x1f9>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cvttsd2si (%rbx,%r12,8),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r12
cmp    %r12,%r15
jne    1350 <write_inner_products+0x1e0>
mov    -0x58(%rbp),%r12
mov    %r12d,%edi
mov    -0x70(%rbp),%rsi
mov    %rbx,%rdx
call   1050 <inner_product@plt>
lea    0xce6(%rip),%rdi
movsd  %xmm0,-0x68(%rbp)
mov    $0x1,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x78(%rbp)
je     1300 <write_inner_products+0x190>
movsd  -0x50(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
ucomisd %xmm1,%xmm0
mov    -0x40(%rbp),%rsi
jbe    130e <write_inner_products+0x19e>
movapd %xmm1,%xmm0
movsd  %xmm1,-0x50(%rbp)
jmp    130e <write_inner_products+0x19e>
mov    -0x2c(%rbp),%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"an error happened...\0A\00"
@.str.1 = [28 x i8] c"inner normal for cell %d :\0A\00"
@.str.2 = [8 x i8] c"%.15le\0A\00"
@.str.3 = [23 x i8] c"Hit enter to continue.\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [51 x i8] c"\0Acomputing the inner products with all points ...\0A\00"
@.str.6 = [14 x i8] c"support %d :\0A\00"
@.str.7 = [4 x i8] c" %d\00"
@.str.8 = [11 x i8] c" : %.15le\0A\00"
@.str.9 = [44 x i8] c"-> support %d has minimal product : %.15le\0A\00"
define i32 @write_inner_products(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca double
%16 = alloca double
%17 = alloca i8
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%18 = load i32, i32* %5
%19 = zext i32 %18 to i64
%20 = call i8* @llvm.stacksave()
store i8* %20, i8** %11
%21 = alloca i32, i64 %19
store i64 %19, i64* %12
%22 = load i32, i32* %4
%23 = zext i32 %22 to i64
%24 = alloca double, i64 %23
store i64 %23, i64* %13
%25 = load i32, i32* %4
%26 = zext i32 %25 to i64
%27 = alloca double, i64 %26
store i64 %26, i64* %14
%28 = load i32, i32* %4
%29 = load i32, i32* %6
%30 = call i32 @celcon_get_inner_normal(i32 %28, i32 %29, double* %24)
store i32 %30, i32* %7
%31 = load i32, i32* %7
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %35
33: ; preds = %3
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
br label %120
35: ; preds = %3
%36 = load i32, i32* %6
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %36)
store i32 0, i32* %8
br label %38
38: ; preds = %48, %35
%39 = load i32, i32* %8
%40 = load i32, i32* %4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %51
42: ; preds = %38
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %24, i64 %44
%46 = load double, double* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double %46)
br label %48
48: ; preds = %42
%49 = load i32, i32* %8
%50 = add nsw i32 %49, 1
store i32 %50, i32* %8
br label %38
51: ; preds = %38
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %17)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%55 = call i32 @celcon_length_of_supports(i32* %5, i32* %21)
store i32 %55, i32* %7
store i32 0, i32* %8
br label %56
56: ; preds = %116, %51
%57 = load i32, i32* %8
%58 = load i32, i32* %5
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %119
60: ; preds = %56
%61 = load i32, i32* %8
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %61)
store i32 0, i32* %9
br label %63
63: ; preds = %109, %60
%64 = load i32, i32* %9
%65 = load i32, i32* %8
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, i32* %21, i64 %66
%68 = load i32, i32* %67
%69 = icmp slt i32 %64, %68
br i1 %69, label %70, label %112
70: ; preds = %63
%71 = load i32, i32* %4
%72 = load i32, i32* %8
%73 = add nsw i32 %72, 1
%74 = load i32, i32* %9
%75 = add nsw i32 %74, 1
%76 = call i32 @celcon_get_lifted_point(i32 %71, i32 %73, i32 %75, double* %27)
store i32 %76, i32* %7
store i32 0, i32* %10
br label %77
77: ; preds = %89, %70
%78 = load i32, i32* %10
%79 = load i32, i32* %4
%80 = sub nsw i32 %79, 1
%81 = icmp slt i32 %78, %80
br i1 %81, label %82, label %92
82: ; preds = %77
%83 = load i32, i32* %10
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %27, i64 %84
%86 = load double, double* %85
%87 = fptosi double %86 to i32
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %82
%90 = load i32, i32* %10
%91 = add nsw i32 %90, 1
store i32 %91, i32* %10
br label %77
92: ; preds = %77
%93 = load i32, i32* %4
%94 = call double @inner_product(i32 %93, double* %24, double* %27)
store double %94, double* %15
%95 = load double, double* %15
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), double %95)
%97 = load i32, i32* %9
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %92
%100 = load double, double* %15
store double %100, double* %16
br label %108
101: ; preds = %92
%102 = load double, double* %15
%103 = load double, double* %16
%104 = fcmp olt double %102, %103
br i1 %104, label %105, label %107
105: ; preds = %101
%106 = load double, double* %15
store double %106, double* %16
br label %107
107: ; preds = %105, %101
br label %108
108: ; preds = %107, %99
br label %109
109: ; preds = %108
%110 = load i32, i32* %9
%111 = add nsw i32 %110, 1
store i32 %111, i32* %9
br label %63
112: ; preds = %63
%113 = load i32, i32* %8
%114 = load double, double* %16
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0), i32 %113, double %114)
br label %116
116: ; preds = %112
%117 = load i32, i32* %8
%118 = add nsw i32 %117, 1
store i32 %118, i32* %8
br label %56
119: ; preds = %56
br label %120
120: ; preds = %119, %33
%121 = load i32, i32* %7
%122 = load i8*, i8** %11
ret i32 %121
}

LLVM IR (-O2):
@.str.1 = [28 x i8] c"inner normal for cell %d :\0A\00"
@.str.2 = [8 x i8] c"%.15le\0A\00"
@.str.3 = [23 x i8] c"Hit enter to continue.\00"
@.str.4 = [3 x i8] c"%c\00"
@.str.6 = [14 x i8] c"support %d :\0A\00"
@.str.7 = [4 x i8] c" %d\00"
@.str.8 = [11 x i8] c" : %.15le\0A\00"
@.str.9 = [44 x i8] c"-> support %d has minimal product : %.15le\0A\00"
@str = [50 x i8] c"\0Acomputing the inner products with all points ...\00"
@str.10 = [21 x i8] c"an error happened...\00"
define i32 @write_inner_products(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8
store i32 %1, i32* %4
%6 = zext i32 %1 to i64
%7 = alloca i32, i64 %6
%8 = zext i32 %0 to i64
%9 = alloca double, i64 %8
%10 = alloca double, i64 %8
%11 = call i32 @celcon_get_inner_normal(i32 %0, i32 %2, double* %9)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %3
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
br label %79
15: ; preds = %3
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%17 = icmp sgt i32 %0, 0
br i1 %17, label %18, label %25
18: ; preds = %15, %18
%19 = phi i64 [ %23, %18 ], [ 0, %15 ]
%20 = getelementptr inbounds double, double* %9, i64 %19
%21 = load double, double* %20
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double %21)
%23 = add nuw nsw i64 %19, 1
%24 = icmp eq i64 %23, %8
br i1 %24, label %25, label %18
25: ; preds = %18, %15
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%29 = call i32 @celcon_length_of_supports(i32* %4, i32* %7)
%30 = load i32, i32* %4
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %79
32: ; preds = %25
%33 = add i32 %0, -1
%34 = icmp sgt i32 %0, 1
%35 = zext i32 %33 to i64
br label %36
36: ; preds = %32, %72
%37 = phi i64 [ 0, %32 ], [ %45, %72 ]
%38 = phi double [ undef, %32 ], [ %74, %72 ]
%39 = phi i32 [ %29, %32 ], [ %73, %72 ]
%40 = trunc i64 %37 to i32
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %40)
%42 = getelementptr inbounds i32, i32* %7, i64 %37
%43 = load i32, i32* %42
%44 = icmp sgt i32 %43, 0
%45 = add nuw nsw i64 %37, 1
br i1 %44, label %46, label %72
46: ; preds = %36
%47 = trunc i64 %45 to i32
br label %48
48: ; preds = %46, %68
%49 = phi double [ %38, %46 ], [ %69, %68 ]
%50 = phi i32 [ 0, %46 ], [ %51, %68 ]
%51 = add nuw nsw i32 %50, 1
%52 = call i32 @celcon_get_lifted_point(i32 %0, i32 %47, i32 %51, double* %10)
br i1 %34, label %53, label %61
53: ; preds = %48, %53
%54 = phi i64 [ %59, %53 ], [ 0, %48 ]
%55 = getelementptr inbounds double, double* %10, i64 %54
%56 = load double, double* %55
%57 = fptosi double %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %57)
%59 = add nuw nsw i64 %54, 1
%60 = icmp eq i64 %59, %35
br i1 %60, label %61, label %53
61: ; preds = %53, %48
%62 = call double @inner_product(i32 %0, double* %9, double* %10)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), double %62)
%64 = icmp eq i32 %50, 0
br i1 %64, label %68, label %65
65: ; preds = %61
%66 = fcmp olt double %62, %49
br i1 %66, label %67, label %68
67: ; preds = %65
br label %68
68: ; preds = %61, %67, %65
%69 = phi double [ %62, %67 ], [ %49, %65 ], [ %62, %61 ]
%70 = load i32, i32* %42
%71 = icmp slt i32 %51, %70
br i1 %71, label %48, label %72
72: ; preds = %68, %36
%73 = phi i32 [ %39, %36 ], [ %52, %68 ]
%74 = phi double [ %38, %36 ], [ %69, %68 ]
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0), i32 %40, double %74)
%76 = load i32, i32* %4
%77 = sext i32 %76 to i64
%78 = icmp slt i64 %45, %77
br i1 %78, label %36, label %79
79: ; preds = %72, %25, %13
%80 = phi i32 [ 1, %13 ], [ %29, %25 ], [ %73, %72 ]
ret i32 %80
}