#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 */
struct timeval {
  double tv_sec;
  double tv_usec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(int *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ knapSack(long, long, int *, int *);
scalar_t__ malloc(long);
int /*<<< orphan*/ omp_set_num_threads(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  FILE *test_file;
  int *val, *wt;
  long int Nitems;
  long int Width;
  long int cont;
  double tpivot1 = 0, tpivot2 = 0, tpivot3 = 0;
  struct timeval tim;
  if (argc < 2) {
    printf("Usage: ./%s <test_file> [numer_of_threads]\n", argv[0]);
    return 1;
  }
  if (argc == 3) {
    omp_set_num_threads(atoi(argv[2]));
  }
  gettimeofday(&tim, NULL);
  tpivot1 = tim.tv_sec + (tim.tv_usec / 1000000.0);
  if (!(test_file = fopen(argv[1], "r"))) {
    printf("Error opening Value file: %s\n", argv[1]);
    return 1;
  }
  fscanf(test_file, "%ld %ld\n", &Nitems, &Width);
  val = (int *)malloc(Nitems * sizeof(int));
  wt = (int *)malloc(Nitems * sizeof(int));
  for (cont = 0; cont < Nitems; cont++) {
    fscanf(test_file, "%d,%d\n", &val[cont], &wt[cont]);
  }
  gettimeofday(&tim, NULL);
  tpivot2 = (tim.tv_sec + (tim.tv_usec / 1000000.0));
  printf("%ld:%ld:%d", Width, Nitems, knapSack(Width, Nitems, wt, val));
  gettimeofday(&tim, NULL);
  tpivot3 = (tim.tv_sec + (tim.tv_usec / 1000000.0));
  printf(":%.6lf:%.6lf\n", tpivot3 - tpivot2, tpivot3 - tpivot1);
  free(val);
  free(wt);
  fclose(test_file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11fc <main+0x5c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13f6 <main+0x256>
cmpl   $0x3,-0x8(%rbp)
jne    121a <main+0x7a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1090 <omp_set_num_threads@plt>
lea    -0x68(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <gettimeofday@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  0xdc7(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xddf(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    128a <main+0xea>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13f6 <main+0x256>
mov    -0x18(%rbp),%rdi
lea    0xdbf(%rip),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x30(%rbp),%rdi
shl    $0x2,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x30(%rbp),%rdi
shl    $0x2,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    131d <main+0x17d>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    -0x40(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x28(%rbp),%rcx
mov    -0x40(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
lea    0xd58(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    12ce <main+0x12e>
lea    -0x68(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <gettimeofday@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  0xcc4(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   10a0 <knapSack@plt>
mov    -0x78(%rbp),%rsi
mov    -0x70(%rbp),%rdx
mov    %eax,%ecx
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x68(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <gettimeofday@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  0xc5b(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
subsd  -0x48(%rbp),%xmm1
lea    0xca2(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%r14
cmp    $0x1,%edi
jg     11c5 <main+0x25>
mov    (%r14),%rsi
lea    0xe60(%rip),%rdi
jmp    137b <main+0x1db>
cmp    $0x3,%edi
jne    11da <main+0x3a>
mov    0x10(%r14),%rdi
call   10c0 <atoi@plt>
mov    %eax,%edi
call   1090 <omp_set_num_threads@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
movsd  0x18(%rsp),%xmm0
divsd  0xe0c(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
mov    0x8(%r14),%rdi
lea    0xe41(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1370 <main+0x1d0>
mov    %rax,%r13
lea    0xe49(%rip),%rsi
xor    %r14d,%r14d
lea    0x8(%rsp),%rdx
lea    0x38(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    0x8(%rsp),%rdi
shl    $0x2,%rdi
call   1080 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    0x8(%rsp),%rdi
shl    $0x2,%rdi
call   1080 <malloc@plt>
mov    %rax,0x20(%rsp)
cmpq   $0x0,0x8(%rsp)
jle    12a6 <main+0x106>
lea    0xe06(%rip),%rbx
mov    0x28(%rsp),%rbp
mov    0x20(%rsp),%r12
xor    %r15d,%r15d
nopl   0x0(%rax)
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1070 <fscanf@plt>
add    $0x1,%r15
add    $0x4,%r12
add    $0x4,%rbp
cmp    0x8(%rsp),%r15
jl     1280 <main+0xe0>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
mov    0x38(%rsp),%rbp
mov    0x8(%rsp),%rbx
movsd  0x10(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
movsd  0x18(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    0x20(%rsp),%r12
mov    %r12,%rdx
mov    0x28(%rsp),%r15
mov    %r15,%rcx
call   10a0 <knapSack@plt>
lea    0xd88(%rip),%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
movapd 0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
shufpd $0x1,0x40(%rsp),%xmm0
divpd  0xce8(%rip),%xmm0
unpcklpd 0x50(%rsp),%xmm1
addpd  %xmm0,%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
movapd %xmm1,%xmm0
subsd  %xmm2,%xmm0
subsd  0x30(%rsp),%xmm1
lea    0xd38(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1040 <fclose@plt>
jmp    1388 <main+0x1e8>
mov    0x8(%r14),%rsi
lea    0xcd3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
@.str = [44 x i8] c"Usage: ./%s <test_file> [numer_of_threads]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [30 x i8] c"Error opening Value file: %s\0A\00"
@.str.3 = [9 x i8] c"%ld %ld\0A\00"
@.str.4 = [7 x i8] c"%d,%d\0A\00"
@.str.5 = [11 x i8] c"%ld:%ld:%d\00"
@.str.6 = [14 x i8] c":%.6lf:%.6lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca %struct.timeval
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
store double 0.000000e+00, double* %14
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %21)
store i32 1, i32* %3
br label %113
23: ; preds = %2
%24 = load i32, i32* %4
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %32
26: ; preds = %23
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 @atoi(i8* %29)
%31 = call i32 @omp_set_num_threads(i32 %30)
br label %32
32: ; preds = %26, %23
%33 = call i32 @gettimeofday(%struct.timeval* %15, i32* null)
%34 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 0
%35 = load double, double* %34
%36 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 1
%37 = load double, double* %36
%38 = fdiv double %37, 1.000000e+06
%39 = fadd double %35, %38
store double %39, double* %12
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i32* @fopen(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %43, i32** %6
%44 = icmp ne i32* %43, null
br i1 %44, label %50, label %45
45: ; preds = %32
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 1
%48 = load i8*, i8** %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %48)
store i32 1, i32* %3
br label %113
50: ; preds = %32
%51 = load i32*, i32** %6
%52 = call i32 (i32*, i8*, ...) @fscanf(i32* %51, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64* %9, i64* %10)
%53 = load i64, i64* %9
%54 = mul i64 %53, 4
%55 = call i64 @malloc(i64 %54)
%56 = inttoptr i64 %55 to i32*
store i32* %56, i32** %7
%57 = load i64, i64* %9
%58 = mul i64 %57, 4
%59 = call i64 @malloc(i64 %58)
%60 = inttoptr i64 %59 to i32*
store i32* %60, i32** %8
store i64 0, i64* %11
br label %61
61: ; preds = %74, %50
%62 = load i64, i64* %11
%63 = load i64, i64* %9
%64 = icmp slt i64 %62, %63
br i1 %64, label %65, label %77
65: ; preds = %61
%66 = load i32*, i32** %6
%67 = load i32*, i32** %7
%68 = load i64, i64* %11
%69 = getelementptr inbounds i32, i32* %67, i64 %68
%70 = load i32*, i32** %8
%71 = load i64, i64* %11
%72 = getelementptr inbounds i32, i32* %70, i64 %71
%73 = call i32 (i32*, i8*, ...) @fscanf(i32* %66, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %69, i32* %72)
br label %74
74: ; preds = %65
%75 = load i64, i64* %11
%76 = add nsw i64 %75, 1
store i64 %76, i64* %11
br label %61
77: ; preds = %61
%78 = call i32 @gettimeofday(%struct.timeval* %15, i32* null)
%79 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 0
%80 = load double, double* %79
%81 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 1
%82 = load double, double* %81
%83 = fdiv double %82, 1.000000e+06
%84 = fadd double %80, %83
store double %84, double* %13
%85 = load i64, i64* %10
%86 = load i64, i64* %9
%87 = load i64, i64* %10
%88 = load i64, i64* %9
%89 = load i32*, i32** %8
%90 = load i32*, i32** %7
%91 = call i32 @knapSack(i64 %87, i64 %88, i32* %89, i32* %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i64 %85, i64 %86, i32 %91)
%93 = call i32 @gettimeofday(%struct.timeval* %15, i32* null)
%94 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 0
%95 = load double, double* %94
%96 = getelementptr inbounds %struct.timeval, %struct.timeval* %15, i32 0, i32 1
%97 = load double, double* %96
%98 = fdiv double %97, 1.000000e+06
%99 = fadd double %95, %98
store double %99, double* %14
%100 = load double, double* %14
%101 = load double, double* %13
%102 = fsub double %100, %101
%103 = load double, double* %14
%104 = load double, double* %12
%105 = fsub double %103, %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %102, double %105)
%107 = load i32*, i32** %7
%108 = call i32 @free(i32* %107)
%109 = load i32*, i32** %8
%110 = call i32 @free(i32* %109)
%111 = load i32*, i32** %6
%112 = call i32 @fclose(i32* %111)
store i32 0, i32* %3
br label %113
113: ; preds = %77, %45, %18
%114 = load i32, i32* %3
ret i32 %114
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
@.str = [44 x i8] c"Usage: ./%s <test_file> [numer_of_threads]\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [30 x i8] c"Error opening Value file: %s\0A\00"
@.str.3 = [9 x i8] c"%ld %ld\0A\00"
@.str.4 = [7 x i8] c"%d,%d\0A\00"
@.str.5 = [11 x i8] c"%ld:%ld:%d\00"
@.str.6 = [14 x i8] c":%.6lf:%.6lf\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca <2 x double>
%6 = bitcast <2 x double>* %5 to %struct.timeval*
%7 = bitcast i64* %3 to i8*
%8 = bitcast i64* %4 to i8*
%9 = bitcast <2 x double>* %5 to i8*
%10 = icmp slt i32 %0, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i8*, i8** %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %12)
br label %80
14: ; preds = %2
%15 = icmp eq i32 %0, 3
br i1 %15, label %16, label %21
16: ; preds = %14
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i32 @atoi(i8* %18)
%20 = tail call i32 @omp_set_num_threads(i32 %19)
br label %21
21: ; preds = %16, %14
%22 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
%23 = getelementptr inbounds <2 x double>, <2 x double>* %5, i64 0, i64 0
%24 = load double, double* %23
%25 = getelementptr inbounds <2 x double>, <2 x double>* %5, i64 0, i64 1
%26 = load double, double* %25
%27 = fdiv double %26, 1.000000e+06
%28 = fadd double %24, %27
%29 = getelementptr inbounds i8*, i8** %1, i64 1
%30 = load i8*, i8** %29
%31 = tail call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %36
33: ; preds = %21
%34 = load i8*, i8** %29
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %34)
br label %80
36: ; preds = %21
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %31, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64* %3, i64* %4)
%38 = load i64, i64* %3
%39 = shl i64 %38, 2
%40 = call i64 @malloc(i64 %39)
%41 = inttoptr i64 %40 to i32*
%42 = load i64, i64* %3
%43 = shl i64 %42, 2
%44 = call i64 @malloc(i64 %43)
%45 = inttoptr i64 %44 to i32*
%46 = load i64, i64* %3
%47 = icmp sgt i64 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %36, %48
%49 = phi i64 [ %53, %48 ], [ 0, %36 ]
%50 = getelementptr inbounds i32, i32* %41, i64 %49
%51 = getelementptr inbounds i32, i32* %45, i64 %49
%52 = call i32 (i32*, i8*, ...) @fscanf(i32* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32* %50, i32* %51)
%53 = add nuw nsw i64 %49, 1
%54 = load i64, i64* %3
%55 = icmp slt i64 %53, %54
br i1 %55, label %48, label %56
56: ; preds = %48, %36
%57 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
%58 = load double, double* %23
%59 = load double, double* %25
%60 = load i64, i64* %4
%61 = load i64, i64* %3
%62 = call i32 @knapSack(i64 %60, i64 %61, i32* %45, i32* %41)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i64 %60, i64 %61, i32 %62)
%64 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
%65 = load <2 x double>, <2 x double>* %5
%66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%67 = insertelement <2 x double> %66, double %59, i64 1
%68 = fdiv <2 x double> %67, <double 1.000000e+06, double 1.000000e+06>
%69 = insertelement <2 x double> %65, double %58, i64 1
%70 = fadd <2 x double> %69, %68
%71 = extractelement <2 x double> %70, i64 0
%72 = shufflevector <2 x double> %70, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%73 = fsub <2 x double> %70, %72
%74 = extractelement <2 x double> %73, i64 0
%75 = fsub double %71, %28
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %74, double %75)
%77 = call i32 @free(i32* %41)
%78 = call i32 @free(i32* %45)
%79 = call i32 @fclose(i32* %31)
br label %80
80: ; preds = %56, %33, %11
%81 = phi i32 [ 1, %11 ], [ 0, %56 ], [ 1, %33 ]
ret i32 %81
}