#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);
int /*<<< orphan*/ fabs(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int);
double pow(int /*<<< orphan*/, double);
int /*<<< orphan*/ printf(char *, int);
int color_feature_skewness(int **obj_id, int width, int height, int n_object,
                           int *area, unsigned char *image, double *mean,
                           double *color_skew) {
  unsigned int i = 0, j = 0;
  double *sum = NULL;
  sum = (double *)malloc(n_object * sizeof(double));
  if (sum == NULL) {
    printf("color_feature_skewness:Cannot allocate %d bytes for memory.\n",
           (n_object * sizeof(double)));
    exit(-1);
  }
  memset(sum, 0, sizeof(n_object * sizeof(double)));
  for (i = 0; i < height; i++) {
    for (j = 0; j < width; j++) {
      if (!obj_id[i][j])
        continue;
      register unsigned int idx = (j + i * width) * 3;
      unsigned char val = ((unsigned char)(0.2126 * (double)(image[idx])) +
                           (unsigned char)(0.7152 * (double)(image[idx + 1])) +
                           (unsigned char)(0.0722 * (double)(image[idx + 2])));
      double tmp = ((double)val - mean[obj_id[i][j] - 1]);
      sum[obj_id[i][j] - 1] += (tmp * tmp * tmp);
    }
  }
  for (i = 0; i < n_object; i++) {
    color_skew[i] = pow(fabs((sum[i] / area[i])), 1.0 / 3.0);
  }
  free(sum);
  return 1;
}


x86 assembly (clang, -O0):
<color_feature_skewness>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
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)
movl   $0x0,-0x30(%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    11e9 <color_feature_skewness+0x79>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%esi
lea    0xe46(%rip),%rdi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jae    133c <color_feature_skewness+0x1cc>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jae    1329 <color_feature_skewness+0x1b9>
mov    -0x8(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x30(%rbp),%ecx
cmpl   $0x0,(%rax,%rcx,4)
jne    123c <color_feature_skewness+0xcc>
jmp    131b <color_feature_skewness+0x1ab>
mov    -0x30(%rbp),%ecx
mov    -0x2c(%rbp),%eax
mov    -0xc(%rbp),%edx
imul   %edx,%eax
add    %eax,%ecx
mov    %ecx,%eax
lea    (%rax,%rax,2),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rcx
mov    -0x3c(%rbp),%eax
mov    %eax,%edx
movzbl (%rcx,%rax,1),%eax
cvtsi2sd %eax,%xmm0
movsd  0xd9d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %edx,%esi
add    $0x1,%esi
movzbl (%rcx,%rsi,1),%esi
cvtsi2sd %esi,%xmm0
movsd  0xd88(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
add    %esi,%eax
add    $0x2,%edx
movzbl (%rcx,%rdx,1),%ecx
cvtsi2sd %ecx,%xmm0
movsd  0xd73(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%ecx
add    %ecx,%eax
mov    %al,-0x3d(%rbp)
movzbl -0x3d(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    -0x2c(%rbp),%edx
mov    (%rcx,%rdx,8),%rcx
mov    -0x30(%rbp),%edx
mov    (%rcx,%rdx,4),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x38(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    -0x2c(%rbp),%edx
mov    (%rcx,%rdx,8),%rcx
mov    -0x30(%rbp),%edx
mov    (%rcx,%rdx,4),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1213 <color_feature_skewness+0xa3>
jmp    132e <color_feature_skewness+0x1be>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1200 <color_feature_skewness+0x90>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1399 <color_feature_skewness+0x229>
mov    -0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
cvtsi2sdl (%rax,%rcx,4),%xmm1
divsd  %xmm1,%xmm0
call   1060 <fabs@plt>
mov    %eax,%edi
movsd  0xc86(%rip),%xmm0
call   1080 <pow@plt>
mov    0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1343 <color_feature_skewness+0x1d3>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<color_feature_skewness>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,%rbx
mov    %r8,0x8(%rsp)
mov    %edx,%r14d
mov    %rsi,0x10(%rsp)
mov    %rdi,0x20(%rsp)
mov    %rcx,0x18(%rsp)
lea    0x0(,%rcx,8),%ebp
mov    %ebp,%edi
call   1070 <malloc@plt>
test   %rax,%rax
je     13ae <color_feature_skewness+0x23e>
mov    %rax,%r12
xor    %r15d,%r15d
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
test   %r14d,%r14d
je     12bf <color_feature_skewness+0x14f>
mov    0x60(%rsp),%r10
mov    %r14d,%r8d
mov    0x10(%rsp),%rax
mov    %eax,%r13d
lea    (%rax,%rax,2),%r9d
movsd  0xe17(%rip),%xmm0
movsd  0xe17(%rip),%xmm1
movsd  0xe17(%rip),%xmm2
xor    %r11d,%r11d
jmp    1210 <color_feature_skewness+0xa0>
xchg   %ax,%ax
add    $0x1,%r11
add    %r9d,%r15d
cmp    %r8,%r11
je     12bf <color_feature_skewness+0x14f>
cmpl   $0x0,0x10(%rsp)
je     1200 <color_feature_skewness+0x90>
mov    0x20(%rsp),%rax
mov    (%rax,%r11,8),%rcx
mov    %r15d,%ebp
xor    %esi,%esi
jmp    123c <color_feature_skewness+0xcc>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rsi
add    $0x3,%ebp
cmp    %rsi,%r13
je     1200 <color_feature_skewness+0x90>
movslq (%rcx,%rsi,4),%rax
test   %rax,%rax
je     1230 <color_feature_skewness+0xc0>
mov    %ebp,%edi
movzbl (%rbx,%rdi,1),%edi
xorps  %xmm3,%xmm3
cvtsi2sd %edi,%xmm3
mulsd  %xmm0,%xmm3
cvttsd2si %xmm3,%edi
lea    0x1(%rbp),%r14d
movzbl (%rbx,%r14,1),%edx
xorps  %xmm3,%xmm3
cvtsi2sd %edx,%xmm3
mulsd  %xmm1,%xmm3
lea    0x2(%rbp),%edx
movzbl (%rbx,%rdx,1),%edx
xorps  %xmm4,%xmm4
cvtsi2sd %edx,%xmm4
cvttsd2si %xmm3,%edx
add    %dil,%dl
mulsd  %xmm2,%xmm4
cvttsd2si %xmm4,%edi
add    %dl,%dil
movzbl %dil,%edx
xorps  %xmm3,%xmm3
cvtsi2sd %edx,%xmm3
subsd  -0x8(%r10,%rax,8),%xmm3
movapd %xmm3,%xmm4
mulsd  %xmm3,%xmm4
mulsd  %xmm3,%xmm4
addsd  -0x8(%r12,%rax,8),%xmm4
movsd  %xmm4,-0x8(%r12,%rax,8)
jmp    1230 <color_feature_skewness+0xc0>
mov    0x18(%rsp),%rcx
test   %ecx,%ecx
mov    0x8(%rsp),%rax
je     1392 <color_feature_skewness+0x222>
mov    0x68(%rsp),%r13
mov    %ecx,%r15d
cmp    $0x1,%ecx
jne    12e5 <color_feature_skewness+0x175>
xor    %ebp,%ebp
jmp    135f <color_feature_skewness+0x1ef>
mov    %r15d,%ebx
and    $0xfffffffe,%ebx
xor    %ebp,%ebp
nopl   (%rax)
movsd  (%r12,%rbp,8),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%rbp,4),%xmm1
divsd  %xmm1,%xmm0
call   1060 <fabs@plt>
mov    %eax,%edi
movsd  0xd07(%rip),%xmm0
call   1080 <pow@plt>
movsd  %xmm0,0x0(%r13,%rbp,8)
movsd  0x8(%r12,%rbp,8),%xmm0
mov    0x8(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sdl 0x4(%rax,%rbp,4),%xmm1
divsd  %xmm1,%xmm0
call   1060 <fabs@plt>
mov    %eax,%edi
movsd  0xcd3(%rip),%xmm0
call   1080 <pow@plt>
mov    0x8(%rsp),%rax
movsd  %xmm0,0x8(%r13,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%rbx
jne    12f0 <color_feature_skewness+0x180>
test   $0x1,%r15b
je     1392 <color_feature_skewness+0x222>
movsd  (%r12,%rbp,8),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl (%rax,%rbp,4),%xmm1
divsd  %xmm1,%xmm0
call   1060 <fabs@plt>
movsd  0xc94(%rip),%xmm0
mov    %eax,%edi
call   1080 <pow@plt>
movsd  %xmm0,0x0(%r13,%rbp,8)
mov    %r12,%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    0xc6b(%rip),%rdi
mov    %ebp,%esi
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

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

LLVM IR (-O2):
@.str = [61 x i8] c"color_feature_skewness:Cannot allocate %d bytes for memory.\0A\00"
define i32 @color_feature_skewness(i32** nocapture %0, i32 %1, i32 %2, i32 %3, i32* nocapture %4, i8* nocapture %5, double* nocapture %6, double* nocapture writeonly %7) {
%9 = shl i32 %3, 3
%10 = tail call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to double*
%12 = icmp eq i64 %10, 0
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = tail call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i32 %9)
%15 = tail call i32 @exit(i32 -1)
unreachable
16: ; preds = %8
%17 = tail call i32 @memset(double* %11, i32 0, i32 8)
%18 = icmp eq i32 %2, 0
br i1 %18, label %30, label %19
19: ; preds = %16
%20 = icmp eq i32 %1, 0
%21 = zext i32 %2 to i64
%22 = zext i32 %1 to i64
br label %23
23: ; preds = %19, %82
%24 = phi i64 [ 0, %19 ], [ %83, %82 ]
br i1 %20, label %82, label %25
25: ; preds = %23
%26 = getelementptr inbounds i32*, i32** %0, i64 %24
%27 = load i32*, i32** %26
%28 = trunc i64 %24 to i32
%29 = mul i32 %28, %1
br label %38
30: ; preds = %82, %16
%31 = icmp eq i32 %3, 0
br i1 %31, label %123, label %32
32: ; preds = %30
%33 = zext i32 %3 to i64
%34 = and i64 %33, 1
%35 = icmp eq i32 %3, 1
br i1 %35, label %110, label %36
36: ; preds = %32
%37 = and i64 %33, 4294967294
br label %85
38: ; preds = %25, %79
%39 = phi i64 [ 0, %25 ], [ %80, %79 ]
%40 = getelementptr inbounds i32, i32* %27, i64 %39
%41 = load i32, i32* %40
%42 = icmp eq i32 %41, 0
br i1 %42, label %79, label %43
43: ; preds = %38
%44 = trunc i64 %39 to i32
%45 = add i32 %29, %44
%46 = mul i32 %45, 3
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %5, i64 %47
%49 = load i8, i8* %48
%50 = uitofp i8 %49 to double
%51 = fmul double %50, 2.126000e-01
%52 = fptoui double %51 to i8
%53 = add i32 %46, 1
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %5, i64 %54
%56 = load i8, i8* %55
%57 = uitofp i8 %56 to double
%58 = fmul double %57, 7.152000e-01
%59 = fptoui double %58 to i8
%60 = add i8 %59, %52
%61 = add i32 %46, 2
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %5, i64 %62
%64 = load i8, i8* %63
%65 = uitofp i8 %64 to double
%66 = fmul double %65, 7.220000e-02
%67 = fptoui double %66 to i8
%68 = add i8 %60, %67
%69 = uitofp i8 %68 to double
%70 = add nsw i32 %41, -1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %6, i64 %71
%73 = load double, double* %72
%74 = fsub double %69, %73
%75 = fmul double %74, %74
%76 = getelementptr inbounds double, double* %11, i64 %71
%77 = load double, double* %76
%78 = tail call double @llvm.fmuladd.f64(double %75, double %74, double %77)
store double %78, double* %76
br label %79
79: ; preds = %38, %43
%80 = add nuw nsw i64 %39, 1
%81 = icmp eq i64 %80, %22
br i1 %81, label %82, label %38
82: ; preds = %79, %23
%83 = add nuw nsw i64 %24, 1
%84 = icmp eq i64 %83, %21
br i1 %84, label %30, label %23
85: ; preds = %85, %36
%86 = phi i64 [ 0, %36 ], [ %107, %85 ]
%87 = phi i64 [ 0, %36 ], [ %108, %85 ]
%88 = getelementptr inbounds double, double* %11, i64 %86
%89 = load double, double* %88
%90 = getelementptr inbounds i32, i32* %4, i64 %86
%91 = load i32, i32* %90
%92 = sitofp i32 %91 to double
%93 = fdiv double %89, %92
%94 = tail call i32 @fabs(double %93)
%95 = tail call double @pow(i32 %94, double 0x3FD5555555555555)
%96 = getelementptr inbounds double, double* %7, i64 %86
store double %95, double* %96
%97 = or i64 %86, 1
%98 = getelementptr inbounds double, double* %11, i64 %97
%99 = load double, double* %98
%100 = getelementptr inbounds i32, i32* %4, i64 %97
%101 = load i32, i32* %100
%102 = sitofp i32 %101 to double
%103 = fdiv double %99, %102
%104 = tail call i32 @fabs(double %103)
%105 = tail call double @pow(i32 %104, double 0x3FD5555555555555)
%106 = getelementptr inbounds double, double* %7, i64 %97
store double %105, double* %106
%107 = add nuw nsw i64 %86, 2
%108 = add i64 %87, 2
%109 = icmp eq i64 %108, %37
br i1 %109, label %110, label %85
110: ; preds = %85, %32
%111 = phi i64 [ 0, %32 ], [ %107, %85 ]
%112 = icmp eq i64 %34, 0
br i1 %112, label %123, label %113
113: ; preds = %110
%114 = getelementptr inbounds double, double* %11, i64 %111
%115 = load double, double* %114
%116 = getelementptr inbounds i32, i32* %4, i64 %111
%117 = load i32, i32* %116
%118 = sitofp i32 %117 to double
%119 = fdiv double %115, %118
%120 = tail call i32 @fabs(double %119)
%121 = tail call double @pow(i32 %120, double 0x3FD5555555555555)
%122 = getelementptr inbounds double, double* %7, i64 %111
store double %121, double* %122
br label %123
123: ; preds = %113, %110, %30
%124 = tail call i32 @free(double* %11)
ret i32 1
}