#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 /*<<< orphan*/ exit(int);
double fabs(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int);
int /*<<< orphan*/ morphological_feature_central_moments(double, double, int **,
                                                         int, int, int,
                                                         unsigned char *,
                                                         double *);
int /*<<< orphan*/ printf(char *, int);
int morphological_feature_object_eccentricity(int **obj_id, int width,
                                              int height, int n_object,
                                              unsigned char *image,
                                              double *object_eccentricity) {
  unsigned int i = 0;
  double *mi00 = NULL;
  mi00 = (double *)malloc(n_object * sizeof(double));
  if (mi00 == NULL) {
    printf("Cannot allocate %d bytes for memory.\n",
           (n_object * sizeof(double)));
    exit(-1);
  }
  memset(mi00, 0, (n_object * sizeof(double)));
  double *mi20 = NULL;
  mi20 = (double *)malloc(n_object * sizeof(double));
  if (mi20 == NULL) {
    printf("Cannot allocate %d bytes for memory.\n",
           (n_object * sizeof(double)));
    exit(-1);
  }
  memset(mi20, 0, (n_object * sizeof(double)));
  double *mi02 = NULL;
  mi02 = (double *)malloc(n_object * sizeof(double));
  if (mi02 == NULL) {
    printf("Cannot allocate %d bytes for memory.\n",
           (n_object * sizeof(double)));
    exit(-1);
  }
  memset(mi02, 0, (n_object * sizeof(double)));
  morphological_feature_central_moments(0.0, 0.0, obj_id, width, height,
                                        n_object, image, mi00);
  morphological_feature_central_moments(2.0, 0.0, obj_id, width, height,
                                        n_object, image, mi20);
  morphological_feature_central_moments(0.0, 2.0, obj_id, width, height,
                                        n_object, image, mi02);
  for (i = 0; i < n_object; i++) {
    double mei02 = (mi02[i] / mi00[i]);
    double mei20 = (mi20[i] / mi00[i]);
    object_eccentricity[i] = fabs((mei02 - mei20) / (mei02 + mei20));
  }
  free(mi00);
  free(mi20);
  free(mi02);
  return 1;
}


x86 assembly (clang, -O0):
<morphological_feature_object_eccentricity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x38(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11ca <morphological_feature_object_eccentricity+0x6a>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
lea    0xe65(%rip),%rdi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x38(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
movq   $0x0,-0x40(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    1225 <morphological_feature_object_eccentricity+0xc5>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
lea    0xe0a(%rip),%rdi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x40(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
movq   $0x0,-0x48(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1280 <morphological_feature_object_eccentricity+0x120>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
lea    0xdaf(%rip),%rdi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x48(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x38(%rbp),%r9
xorps  %xmm1,%xmm1
movaps %xmm1,%xmm0
call   1060 <morphological_feature_central_moments@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x40(%rbp),%r9
movsd  0xd2e(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1060 <morphological_feature_central_moments@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%r8
mov    -0x48(%rbp),%r9
xorps  %xmm0,%xmm0
movsd  0xd06(%rip),%xmm1
call   1060 <morphological_feature_central_moments@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1389 <morphological_feature_object_eccentricity+0x229>
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
movaps 0xca5(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1306 <morphological_feature_object_eccentricity+0x1a6>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<morphological_feature_object_eccentricity>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,%r14
mov    %r8,%r12
mov    %ecx,%ebx
mov    %edx,0x1c(%rsp)
mov    %esi,%r13d
mov    %rdi,0x10(%rsp)
lea    0x0(,%rbx,8),%ebp
mov    %ebp,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     13aa <morphological_feature_object_eccentricity+0x24a>
mov    %rax,%r15
mov    %r12,0x8(%rsp)
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <memset@plt>
mov    %ebp,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     13aa <morphological_feature_object_eccentricity+0x24a>
mov    %rax,%r12
mov    %rbx,0x20(%rsp)
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <memset@plt>
mov    %ebp,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     13aa <morphological_feature_object_eccentricity+0x24a>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <memset@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
mov    0x10(%rsp),%rdi
mov    %r13d,%esi
mov    %r13d,0x4(%rsp)
mov    0x1c(%rsp),%r13d
mov    %r13d,%edx
mov    0x20(%rsp),%rbp
mov    %ebp,%ecx
mov    0x8(%rsp),%r8
mov    %r15,%r9
call   1060 <morphological_feature_central_moments@plt>
movsd  0xdd9(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    0x10(%rsp),%rdi
mov    0x4(%rsp),%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    0x8(%rsp),%r8
mov    %r12,%r9
call   1060 <morphological_feature_central_moments@plt>
xorpd  %xmm0,%xmm0
movsd  0xdaf(%rip),%xmm1
mov    0x10(%rsp),%rdi
mov    0x4(%rsp),%esi
mov    %r13d,%edx
mov    %ebp,%ecx
mov    0x8(%rsp),%r8
mov    %rbx,%r9
call   1060 <morphological_feature_central_moments@plt>
test   %ebp,%ebp
je     12cc <morphological_feature_object_eccentricity+0x16c>
mov    %ebp,%eax
cmp    $0x1,%ebp
jne    12f8 <morphological_feature_object_eccentricity+0x198>
xor    %ecx,%ecx
movapd 0xd8b(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rbx,%rcx,8),%xmm1
movsd  (%r15,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
movsd  (%r12,%rcx,8),%xmm3
divsd  %xmm2,%xmm3
movapd %xmm1,%xmm2
subsd  %xmm3,%xmm2
addsd  %xmm1,%xmm3
divsd  %xmm3,%xmm2
andpd  %xmm0,%xmm2
movlpd %xmm2,(%r14,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1290 <morphological_feature_object_eccentricity+0x130>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    (%r14,%rax,8),%rcx
lea    (%rbx,%rax,8),%rdx
lea    (%r15,%rax,8),%rsi
lea    (%r12,%rax,8),%rbp
cmp    %r14,%rdx
seta   %r9b
cmp    %rcx,%rbx
setb   %r10b
cmp    %r14,%rsi
seta   %dl
cmp    %rcx,%r15
setb   %dil
cmp    %r14,%rbp
seta   %sil
cmp    %rcx,%r12
setb   %r8b
xor    %ecx,%ecx
test   %r10b,%r9b
jne    127d <morphological_feature_object_eccentricity+0x11d>
and    %dil,%dl
jne    127d <morphological_feature_object_eccentricity+0x11d>
and    %r8b,%sil
jne    127d <morphological_feature_object_eccentricity+0x11d>
mov    %eax,%ecx
and    $0xfffffffe,%ecx
xor    %edx,%edx
movapd 0xcb3(%rip),%xmm0
nopl   (%rax)
movupd (%rbx,%rdx,8),%xmm1
movupd (%r15,%rdx,8),%xmm2
divpd  %xmm2,%xmm1
movupd (%r12,%rdx,8),%xmm3
divpd  %xmm2,%xmm3
movapd %xmm1,%xmm2
subpd  %xmm3,%xmm2
addpd  %xmm1,%xmm3
divpd  %xmm3,%xmm2
andpd  %xmm0,%xmm2
movupd %xmm2,(%r14,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%rcx
jne    1360 <morphological_feature_object_eccentricity+0x200>
cmp    %rax,%rcx
jne    127d <morphological_feature_object_eccentricity+0x11d>
jmp    12cc <morphological_feature_object_eccentricity+0x16c>
lea    0xc6f(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Cannot allocate %d bytes for memory.\0A\00"
define i32 @morphological_feature_object_eccentricity(i32** %0, i32 %1, i32 %2, i32 %3, i8* %4, double* %5) {
%7 = alloca i32**
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca double*
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double
%18 = alloca double
store i32** %0, i32*** %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i8* %4, i8** %11
store double* %5, double** %12
store i32 0, i32* %13
store double* null, double** %14
%19 = load i32, i32* %10
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 8
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 %22)
%24 = inttoptr i64 %23 to double*
store double* %24, double** %14
%25 = load double*, double** %14
%26 = icmp eq double* %25, null
br i1 %26, label %27, label %34
27: ; preds = %6
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %31)
%33 = call i32 @exit(i32 -1)
unreachable
34: ; preds = %6
%35 = load double*, double** %14
%36 = load i32, i32* %10
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = trunc i64 %38 to i32
%40 = call i32 @memset(double* %35, i32 0, i32 %39)
store double* null, double** %15
%41 = load i32, i32* %10
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 8
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to double*
store double* %46, double** %15
%47 = load double*, double** %15
%48 = icmp eq double* %47, null
br i1 %48, label %49, label %56
49: ; preds = %34
%50 = load i32, i32* %10
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = trunc i64 %52 to i32
%54 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %53)
%55 = call i32 @exit(i32 -1)
unreachable
56: ; preds = %34
%57 = load double*, double** %15
%58 = load i32, i32* %10
%59 = sext i32 %58 to i64
%60 = mul i64 %59, 8
%61 = trunc i64 %60 to i32
%62 = call i32 @memset(double* %57, i32 0, i32 %61)
store double* null, double** %16
%63 = load i32, i32* %10
%64 = sext i32 %63 to i64
%65 = mul i64 %64, 8
%66 = trunc i64 %65 to i32
%67 = call i64 @malloc(i32 %66)
%68 = inttoptr i64 %67 to double*
store double* %68, double** %16
%69 = load double*, double** %16
%70 = icmp eq double* %69, null
br i1 %70, label %71, label %78
71: ; preds = %56
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 8
%75 = trunc i64 %74 to i32
%76 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %75)
%77 = call i32 @exit(i32 -1)
unreachable
78: ; preds = %56
%79 = load double*, double** %16
%80 = load i32, i32* %10
%81 = sext i32 %80 to i64
%82 = mul i64 %81, 8
%83 = trunc i64 %82 to i32
%84 = call i32 @memset(double* %79, i32 0, i32 %83)
%85 = load i32**, i32*** %7
%86 = load i32, i32* %8
%87 = load i32, i32* %9
%88 = load i32, i32* %10
%89 = load i8*, i8** %11
%90 = load double*, double** %14
%91 = call i32 @morphological_feature_central_moments(double 0.000000e+00, double 0.000000e+00, i32** %85, i32 %86, i32 %87, i32 %88, i8* %89, double* %90)
%92 = load i32**, i32*** %7
%93 = load i32, i32* %8
%94 = load i32, i32* %9
%95 = load i32, i32* %10
%96 = load i8*, i8** %11
%97 = load double*, double** %15
%98 = call i32 @morphological_feature_central_moments(double 2.000000e+00, double 0.000000e+00, i32** %92, i32 %93, i32 %94, i32 %95, i8* %96, double* %97)
%99 = load i32**, i32*** %7
%100 = load i32, i32* %8
%101 = load i32, i32* %9
%102 = load i32, i32* %10
%103 = load i8*, i8** %11
%104 = load double*, double** %16
%105 = call i32 @morphological_feature_central_moments(double 0.000000e+00, double 2.000000e+00, i32** %99, i32 %100, i32 %101, i32 %102, i8* %103, double* %104)
store i32 0, i32* %13
br label %106
106: ; preds = %145, %78
%107 = load i32, i32* %13
%108 = load i32, i32* %10
%109 = icmp ult i32 %107, %108
br i1 %109, label %110, label %148
110: ; preds = %106
%111 = load double*, double** %16
%112 = load i32, i32* %13
%113 = zext i32 %112 to i64
%114 = getelementptr inbounds double, double* %111, i64 %113
%115 = load double, double* %114
%116 = load double*, double** %14
%117 = load i32, i32* %13
%118 = zext i32 %117 to i64
%119 = getelementptr inbounds double, double* %116, i64 %118
%120 = load double, double* %119
%121 = fdiv double %115, %120
store double %121, double* %17
%122 = load double*, double** %15
%123 = load i32, i32* %13
%124 = zext i32 %123 to i64
%125 = getelementptr inbounds double, double* %122, i64 %124
%126 = load double, double* %125
%127 = load double*, double** %14
%128 = load i32, i32* %13
%129 = zext i32 %128 to i64
%130 = getelementptr inbounds double, double* %127, i64 %129
%131 = load double, double* %130
%132 = fdiv double %126, %131
store double %132, double* %18
%133 = load double, double* %17
%134 = load double, double* %18
%135 = fsub double %133, %134
%136 = load double, double* %17
%137 = load double, double* %18
%138 = fadd double %136, %137
%139 = fdiv double %135, %138
%140 = call double @llvm.fabs.f64(double %139)
%141 = load double*, double** %12
%142 = load i32, i32* %13
%143 = zext i32 %142 to i64
%144 = getelementptr inbounds double, double* %141, i64 %143
store double %140, double* %144
br label %145
145: ; preds = %110
%146 = load i32, i32* %13
%147 = add i32 %146, 1
store i32 %147, i32* %13
br label %106
148: ; preds = %106
%149 = load double*, double** %14
%150 = call i32 @free(double* %149)
%151 = load double*, double** %15
%152 = call i32 @free(double* %151)
%153 = load double*, double** %16
%154 = call i32 @free(double* %153)
ret i32 1
}

LLVM IR (-O2):
@.str = [38 x i8] c"Cannot allocate %d bytes for memory.\0A\00"
define i32 @morphological_feature_object_eccentricity(i32** %0, i32 %1, i32 %2, i32 %3, i8* %4, double* nocapture writeonly %5) {
%7 = shl i32 %3, 3
%8 = tail call i64 @malloc(i32 %7)
%9 = inttoptr i64 %8 to double*
%10 = inttoptr i64 %8 to i8*
%11 = icmp eq i64 %8, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %7)
%14 = tail call i32 @exit(i32 -1)
unreachable
15: ; preds = %6
%16 = tail call i32 @memset(double* %9, i32 0, i32 %7)
%17 = tail call i64 @malloc(i32 %7)
%18 = inttoptr i64 %17 to double*
%19 = inttoptr i64 %17 to i8*
%20 = icmp eq i64 %17, 0
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %7)
%23 = tail call i32 @exit(i32 -1)
unreachable
24: ; preds = %15
%25 = tail call i32 @memset(double* %18, i32 0, i32 %7)
%26 = tail call i64 @malloc(i32 %7)
%27 = inttoptr i64 %26 to double*
%28 = inttoptr i64 %26 to i8*
%29 = icmp eq i64 %26, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %7)
%32 = tail call i32 @exit(i32 -1)
unreachable
33: ; preds = %24
%34 = tail call i32 @memset(double* %27, i32 0, i32 %7)
%35 = tail call i32 @morphological_feature_central_moments(double 0.000000e+00, double 0.000000e+00, i32** %0, i32 %1, i32 %2, i32 %3, i8* %4, double* %9)
%36 = tail call i32 @morphological_feature_central_moments(double 2.000000e+00, double 0.000000e+00, i32** %0, i32 %1, i32 %2, i32 %3, i8* %4, double* %18)
%37 = tail call i32 @morphological_feature_central_moments(double 0.000000e+00, double 2.000000e+00, i32** %0, i32 %1, i32 %2, i32 %3, i8* %4, double* %27)
%38 = icmp eq i32 %3, 0
br i1 %38, label %103, label %39
39: ; preds = %33
%40 = zext i32 %3 to i64
%41 = icmp eq i32 %3, 1
br i1 %41, label %84, label %42
42: ; preds = %39
%43 = getelementptr double, double* %5, i64 %40
%44 = bitcast double* %43 to i8*
%45 = getelementptr double, double* %27, i64 %40
%46 = getelementptr double, double* %9, i64 %40
%47 = getelementptr double, double* %18, i64 %40
%48 = icmp ugt double* %45, %5
%49 = icmp ult i8* %28, %44
%50 = and i1 %48, %49
%51 = icmp ugt double* %46, %5
%52 = icmp ult i8* %10, %44
%53 = and i1 %51, %52
%54 = or i1 %50, %53
%55 = icmp ugt double* %47, %5
%56 = icmp ult i8* %19, %44
%57 = and i1 %55, %56
%58 = or i1 %54, %57
br i1 %58, label %84, label %59
59: ; preds = %42
%60 = and i64 %40, 4294967294
br label %61
61: ; preds = %61, %59
%62 = phi i64 [ 0, %59 ], [ %80, %61 ]
%63 = getelementptr inbounds double, double* %27, i64 %62
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %9, i64 %62
%67 = bitcast double* %66 to <2 x double>*
%68 = load <2 x double>, <2 x double>* %67
%69 = fdiv <2 x double> %65, %68
%70 = getelementptr inbounds double, double* %18, i64 %62
%71 = bitcast double* %70 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = fdiv <2 x double> %72, %68
%74 = fsub <2 x double> %69, %73
%75 = fadd <2 x double> %69, %73
%76 = fdiv <2 x double> %74, %75
%77 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %76)
%78 = getelementptr inbounds double, double* %5, i64 %62
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %77, <2 x double>* %79
%80 = add nuw i64 %62, 2
%81 = icmp eq i64 %80, %60
br i1 %81, label %82, label %61
82: ; preds = %61
%83 = icmp eq i64 %60, %40
br i1 %83, label %103, label %84
84: ; preds = %42, %39, %82
%85 = phi i64 [ 0, %42 ], [ 0, %39 ], [ %60, %82 ]
br label %86
86: ; preds = %84, %86
%87 = phi i64 [ %101, %86 ], [ %85, %84 ]
%88 = getelementptr inbounds double, double* %27, i64 %87
%89 = load double, double* %88
%90 = getelementptr inbounds double, double* %9, i64 %87
%91 = load double, double* %90
%92 = fdiv double %89, %91
%93 = getelementptr inbounds double, double* %18, i64 %87
%94 = load double, double* %93
%95 = fdiv double %94, %91
%96 = fsub double %92, %95
%97 = fadd double %92, %95
%98 = fdiv double %96, %97
%99 = tail call double @llvm.fabs.f64(double %98)
%100 = getelementptr inbounds double, double* %5, i64 %87
store double %99, double* %100
%101 = add nuw nsw i64 %87, 1
%102 = icmp eq i64 %101, %40
br i1 %102, label %103, label %86
103: ; preds = %86, %82, %33
%104 = tail call i32 @free(double* %9)
%105 = tail call i32 @free(double* %18)
%106 = tail call i32 @free(double* %27)
ret i32 1
}