#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 {
  int tv_sec;
  double tv_usec;
};

/* Variables and functions */
scalar_t__ RAND_MAX;
int /*<<< orphan*/ acc_device_default;
int /*<<< orphan*/ acc_init(int /*<<< orphan*/);
float fabsf(float);
int /*<<< orphan*/ free(float *);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ rand();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/);
int main() {
  int i, j, k;
  float product, known_product;
  int NI;
  int error;
  float *input;
  float rounding_error = 1.E-9;
  struct timeval tim;
  double start, end;
  NI = 1 << 20;
  error = 0;
  input = (float *)malloc(NI * sizeof(float));
  acc_init(acc_device_default);
  srand((unsigned)time(0));
  for (i = 0; i < NI; i++) {
    input[i] = (float)rand() / (float)RAND_MAX + 0.1;
  }
  product = 1;
  gettimeofday(&tim, NULL);
  start = tim.tv_sec * 1000 + (tim.tv_usec / 1000.0);
#pragma acc parallel copyin(input [0:NI]) num_gangs(192) num_workers(1)        \
    vector_length(128)
  {
#pragma acc loop gang vector reduction(* : product)
    for (i = 0; i < NI; i++)
      product *= input[i];
  }
  gettimeofday(&tim, NULL);
  end = tim.tv_sec * 1000 + (tim.tv_usec / 1000.0);
  known_product = 1;
  for (i = 0; i < NI; i++) {
    known_product *= input[i];
  }
  if (fabsf(product - known_product) > rounding_error) {
    error++;
    printf("same_gang_vector + FAILED! product=%d, known_product=%d\n", product,
           known_product);
  }
  printf("same_gang_vector + execution time is :%.2lf: ms\n", end - start);
  if (error == 0)
    printf("same_gang_vector + SUCCESS!\n");
  free(input);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xe69(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movl   $0x100000,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
call   1090 <acc_init@plt>
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1237 <main+0xb7>
mov    $0x0,%al
call   10a0 <rand@plt>
cvtsi2ss %rax,%xmm0
mov    0x2de9(%rip),%rax
cvtsi2ssq (%rax),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdfc(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11e0 <main+0x60>
movss  0xdc5(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    -0x40(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
imul   $0x3e8,-0x40(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd9f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12ae <main+0x12e>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    127d <main+0xfd>
lea    -0x40(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
imul   $0x3e8,-0x40(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd35(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movss  0xd1c(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1325 <main+0x1a5>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12f4 <main+0x174>
movss  -0x14(%rbp),%xmm0
subss  -0x18(%rbp),%xmm0
movaps 0xcea(%rip),%xmm1
pand   %xmm1,%xmm0
ucomiss -0x2c(%rbp),%xmm0
jbe    136d <main+0x1ed>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xcca(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  -0x50(%rbp),%xmm0
subsd  -0x48(%rbp),%xmm0
lea    0xceb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
jne    139d <main+0x21d>
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    $0x400000,%edi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
call   10a0 <acc_init@plt>
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    0x2e1f(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10b0 <rand@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
xorps  %xmm1,%xmm1
cvtsi2ssq (%r14),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
addsd  0xe09(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%r15,%rbx,4)
add    $0x1,%rbx
cmp    $0x100000,%rbx
jne    11d0 <main+0x40>
lea    0x18(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
imul   $0x3e8,0x18(%rsp),%eax
movsd  0x20(%rsp),%xmm0
divsd  0xdd8(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movss  0xdd2(%rip),%xmm0
mov    $0x7,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mulss  -0x1c(%r15,%rcx,4),%xmm0
mulss  -0x18(%r15,%rcx,4),%xmm0
mulss  -0x14(%r15,%rcx,4),%xmm0
mulss  -0x10(%r15,%rcx,4),%xmm0
mulss  -0xc(%r15,%rcx,4),%xmm0
mulss  -0x8(%r15,%rcx,4),%xmm0
mulss  -0x4(%r15,%rcx,4),%xmm0
mulss  (%r15,%rcx,4),%xmm0
add    $0x8,%rcx
cmp    $0x100007,%rcx
jne    1250 <main+0xc0>
movss  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x28(%rsp)
lea    0x18(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
imul   $0x3e8,0x18(%rsp),%eax
movsd  0x20(%rsp),%xmm5
divsd  0xd3f(%rip),%xmm5
movss  0xd3f(%rip),%xmm1
mov    $0x7,%ecx
cs nopw 0x0(%rax,%rax,1)
mulss  -0x1c(%r15,%rcx,4),%xmm1
mulss  -0x18(%r15,%rcx,4),%xmm1
mulss  -0x14(%r15,%rcx,4),%xmm1
mulss  -0x10(%r15,%rcx,4),%xmm1
mulss  -0xc(%r15,%rcx,4),%xmm1
mulss  -0x8(%r15,%rcx,4),%xmm1
mulss  -0x4(%r15,%rcx,4),%xmm1
mulss  (%r15,%rcx,4),%xmm1
add    $0x8,%rcx
cmp    $0x100007,%rcx
jne    12e0 <main+0x150>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm3
addsd  0x28(%rsp),%xmm3
movss  0x8(%rsp),%xmm4
movaps %xmm4,%xmm2
subss  %xmm1,%xmm2
andps  0xcd5(%rip),%xmm2
addsd  %xmm0,%xmm5
ucomiss 0xcbe(%rip),%xmm2
jbe    1399 <main+0x209>
xorps  %xmm0,%xmm0
cvtss2sd %xmm4,%xmm0
cvtss2sd %xmm1,%xmm1
lea    0xcc6(%rip),%rdi
mov    $0x2,%al
movsd  %xmm3,0x10(%rsp)
movsd  %xmm5,0x8(%rsp)
call   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
lea    0xcd9(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
jmp    13bb <main+0x22b>
subsd  %xmm3,%xmm5
lea    0xcc5(%rip),%rdi
movapd %xmm5,%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xce4(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.timeval = type { i32, double }
@acc_device_default = global i32 0
@RAND_MAX = global i64 0
@.str = [57 x i8] c"same_gang_vector + FAILED! product=%d, known_product=%d\0A\00"
@.str.1 = [49 x i8] c"same_gang_vector + execution time is :%.2lf: ms\0A\00"
@.str.2 = [29 x i8] c"same_gang_vector + SUCCESS!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca i32
%8 = alloca i32
%9 = alloca float*
%10 = alloca float
%11 = alloca %struct.timeval
%12 = alloca double
%13 = alloca double
store i32 0, i32* %1
store float 0x3E112E0BE0000000, float* %10
store i32 1048576, i32* %7
store i32 0, i32* %8
%14 = load i32, i32* %7
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 4
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to float*
store float* %19, float** %9
%20 = load i32, i32* @acc_device_default
%21 = call i32 @acc_init(i32 %20)
%22 = call i64 @time(i32 0)
%23 = trunc i64 %22 to i32
%24 = call i32 @srand(i32 %23)
store i32 0, i32* %2
br label %25
25: ; preds = %42, %0
%26 = load i32, i32* %2
%27 = load i32, i32* %7
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %45
29: ; preds = %25
%30 = call i64 (...) @rand()
%31 = sitofp i64 %30 to float
%32 = load i64, i64* @RAND_MAX
%33 = sitofp i64 %32 to float
%34 = fdiv float %31, %33
%35 = fpext float %34 to double
%36 = fadd double %35, 1.000000e-01
%37 = fptrunc double %36 to float
%38 = load float*, float** %9
%39 = load i32, i32* %2
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds float, float* %38, i64 %40
store float %37, float* %41
br label %42
42: ; preds = %29
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %25
45: ; preds = %25
store float 1.000000e+00, float* %5
%46 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
%47 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 0
%48 = load i32, i32* %47
%49 = mul nsw i32 %48, 1000
%50 = sitofp i32 %49 to double
%51 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 1
%52 = load double, double* %51
%53 = fdiv double %52, 1.000000e+03
%54 = fadd double %50, %53
store double %54, double* %12
store i32 0, i32* %2
br label %55
55: ; preds = %67, %45
%56 = load i32, i32* %2
%57 = load i32, i32* %7
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %70
59: ; preds = %55
%60 = load float*, float** %9
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds float, float* %60, i64 %62
%64 = load float, float* %63
%65 = load float, float* %5
%66 = fmul float %65, %64
store float %66, float* %5
br label %67
67: ; preds = %59
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 1
store i32 %69, i32* %2
br label %55
70: ; preds = %55
%71 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
%72 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 0
%73 = load i32, i32* %72
%74 = mul nsw i32 %73, 1000
%75 = sitofp i32 %74 to double
%76 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 1
%77 = load double, double* %76
%78 = fdiv double %77, 1.000000e+03
%79 = fadd double %75, %78
store double %79, double* %13
store float 1.000000e+00, float* %6
store i32 0, i32* %2
br label %80
80: ; preds = %92, %70
%81 = load i32, i32* %2
%82 = load i32, i32* %7
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %95
84: ; preds = %80
%85 = load float*, float** %9
%86 = load i32, i32* %2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds float, float* %85, i64 %87
%89 = load float, float* %88
%90 = load float, float* %6
%91 = fmul float %90, %89
store float %91, float* %6
br label %92
92: ; preds = %84
%93 = load i32, i32* %2
%94 = add nsw i32 %93, 1
store i32 %94, i32* %2
br label %80
95: ; preds = %80
%96 = load float, float* %5
%97 = load float, float* %6
%98 = fsub float %96, %97
%99 = call float @llvm.fabs.f32(float %98)
%100 = load float, float* %10
%101 = fcmp ogt float %99, %100
br i1 %101, label %102, label %110
102: ; preds = %95
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
%105 = load float, float* %5
%106 = fpext float %105 to double
%107 = load float, float* %6
%108 = fpext float %107 to double
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), double %106, double %108)
br label %110
110: ; preds = %102, %95
%111 = load double, double* %13
%112 = load double, double* %12
%113 = fsub double %111, %112
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), double %113)
%115 = load i32, i32* %8
%116 = icmp eq i32 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %110
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
br label %119
119: ; preds = %117, %110
%120 = load float*, float** %9
%121 = call i32 @free(float* %120)
%122 = load i32, i32* %1
ret i32 %122
}

LLVM IR (-O2):
%struct.timeval = type { i32, double }
@acc_device_default = global i32 0
@RAND_MAX = global i64 0
@.str = [57 x i8] c"same_gang_vector + FAILED! product=%d, known_product=%d\0A\00"
@.str.1 = [49 x i8] c"same_gang_vector + execution time is :%.2lf: ms\0A\00"
@str = [28 x i8] c"same_gang_vector + SUCCESS!\00"
define i32 @main() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = tail call i64 @malloc(i32 4194304)
%4 = inttoptr i64 %3 to float*
%5 = load i32, i32* @acc_device_default
%6 = tail call i32 @acc_init(i32 %5)
%7 = tail call i64 @time(i32 0)
%8 = trunc i64 %7 to i32
%9 = tail call i32 @srand(i32 %8)
br label %10
10: ; preds = %0, %10
%11 = phi i64 [ 0, %0 ], [ %21, %10 ]
%12 = tail call i64 (...) @rand()
%13 = sitofp i64 %12 to float
%14 = load i64, i64* @RAND_MAX
%15 = sitofp i64 %14 to float
%16 = fdiv float %13, %15
%17 = fpext float %16 to double
%18 = fadd double %17, 1.000000e-01
%19 = fptrunc double %18 to float
%20 = getelementptr inbounds float, float* %4, i64 %11
store float %19, float* %20
%21 = add nuw nsw i64 %11, 1
%22 = icmp eq i64 %21, 1048576
br i1 %22, label %23, label %10
23: ; preds = %10
%24 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%25 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%26 = load i32, i32* %25
%27 = mul nsw i32 %26, 1000
%28 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%29 = load double, double* %28
%30 = fdiv double %29, 1.000000e+03
br label %31
31: ; preds = %31, %23
%32 = phi i64 [ 0, %23 ], [ %65, %31 ]
%33 = phi float [ 1.000000e+00, %23 ], [ %64, %31 ]
%34 = getelementptr inbounds float, float* %4, i64 %32
%35 = load float, float* %34
%36 = fmul float %33, %35
%37 = or i64 %32, 1
%38 = getelementptr inbounds float, float* %4, i64 %37
%39 = load float, float* %38
%40 = fmul float %36, %39
%41 = or i64 %32, 2
%42 = getelementptr inbounds float, float* %4, i64 %41
%43 = load float, float* %42
%44 = fmul float %40, %43
%45 = or i64 %32, 3
%46 = getelementptr inbounds float, float* %4, i64 %45
%47 = load float, float* %46
%48 = fmul float %44, %47
%49 = or i64 %32, 4
%50 = getelementptr inbounds float, float* %4, i64 %49
%51 = load float, float* %50
%52 = fmul float %48, %51
%53 = or i64 %32, 5
%54 = getelementptr inbounds float, float* %4, i64 %53
%55 = load float, float* %54
%56 = fmul float %52, %55
%57 = or i64 %32, 6
%58 = getelementptr inbounds float, float* %4, i64 %57
%59 = load float, float* %58
%60 = fmul float %56, %59
%61 = or i64 %32, 7
%62 = getelementptr inbounds float, float* %4, i64 %61
%63 = load float, float* %62
%64 = fmul float %60, %63
%65 = add nuw nsw i64 %32, 8
%66 = icmp eq i64 %65, 1048576
br i1 %66, label %67, label %31
67: ; preds = %31
%68 = sitofp i32 %27 to double
%69 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%70 = load i32, i32* %25
%71 = mul nsw i32 %70, 1000
%72 = load double, double* %28
%73 = fdiv double %72, 1.000000e+03
br label %74
74: ; preds = %74, %67
%75 = phi i64 [ 0, %67 ], [ %108, %74 ]
%76 = phi float [ 1.000000e+00, %67 ], [ %107, %74 ]
%77 = getelementptr inbounds float, float* %4, i64 %75
%78 = load float, float* %77
%79 = fmul float %76, %78
%80 = or i64 %75, 1
%81 = getelementptr inbounds float, float* %4, i64 %80
%82 = load float, float* %81
%83 = fmul float %79, %82
%84 = or i64 %75, 2
%85 = getelementptr inbounds float, float* %4, i64 %84
%86 = load float, float* %85
%87 = fmul float %83, %86
%88 = or i64 %75, 3
%89 = getelementptr inbounds float, float* %4, i64 %88
%90 = load float, float* %89
%91 = fmul float %87, %90
%92 = or i64 %75, 4
%93 = getelementptr inbounds float, float* %4, i64 %92
%94 = load float, float* %93
%95 = fmul float %91, %94
%96 = or i64 %75, 5
%97 = getelementptr inbounds float, float* %4, i64 %96
%98 = load float, float* %97
%99 = fmul float %95, %98
%100 = or i64 %75, 6
%101 = getelementptr inbounds float, float* %4, i64 %100
%102 = load float, float* %101
%103 = fmul float %99, %102
%104 = or i64 %75, 7
%105 = getelementptr inbounds float, float* %4, i64 %104
%106 = load float, float* %105
%107 = fmul float %103, %106
%108 = add nuw nsw i64 %75, 8
%109 = icmp eq i64 %108, 1048576
br i1 %109, label %110, label %74
110: ; preds = %74
%111 = fadd double %30, %68
%112 = sitofp i32 %71 to double
%113 = fadd double %73, %112
%114 = fsub float %64, %107
%115 = tail call float @llvm.fabs.f32(float %114)
%116 = fcmp ogt float %115, 0x3E112E0BE0000000
br i1 %116, label %117, label %123
117: ; preds = %110
%118 = fpext float %64 to double
%119 = fpext float %107 to double
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), double %118, double %119)
%121 = fsub double %113, %111
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), double %121)
br label %127
123: ; preds = %110
%124 = fsub double %113, %111
%125 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), double %124)
%126 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
br label %127
127: ; preds = %117, %123
%128 = tail call i32 @free(float* %4)
ret i32 0
}