#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*/ bent_cigar_func(double *, double *, int, double *, double *,
                                   int);
int /*<<< orphan*/ cf_cal(double *, double *, int, double *, double *, double *,
                          double *, int);
int /*<<< orphan*/ dif_powers_func(double *, double *, int, double *, double *,
                                   int);
int /*<<< orphan*/ discus_func(double *, double *, int, double *, double *,
                               int);
int /*<<< orphan*/ rosenbrock_func(double *, double *, int, double *, double *,
                                   int);
int /*<<< orphan*/ sphere_func(double *, double *, int, double *, double *,
                               int /*<<< orphan*/);
void cf01(double *x, double *f, int nx, double *Os, double *Mr, int r_flag) {
  int i, cf_num = 5;
  double fit[5];
  double delta[5] = {10, 20, 30, 40, 50};
  double bias[5] = {0, 100, 200, 300, 400};
  i = 0;
  rosenbrock_func(x, &fit[i], nx, &Os[i * nx], &Mr[i * nx * nx], r_flag);
  fit[i] = 10000 * fit[i] / 1e+4;
  i = 1;
  dif_powers_func(x, &fit[i], nx, &Os[i * nx], &Mr[i * nx * nx], r_flag);
  fit[i] = 10000 * fit[i] / 1e+10;
  i = 2;
  bent_cigar_func(x, &fit[i], nx, &Os[i * nx], &Mr[i * nx * nx], r_flag);
  fit[i] = 10000 * fit[i] / 1e+30;
  i = 3;
  discus_func(x, &fit[i], nx, &Os[i * nx], &Mr[i * nx * nx], r_flag);
  fit[i] = 10000 * fit[i] / 1e+10;
  i = 4;
  sphere_func(x, &fit[i], nx, &Os[i * nx], &Mr[i * nx * nx], 0);
  fit[i] = 10000 * fit[i] / 1e+5;
  cf_cal(x, f, nx, Os, delta, bias, fit, cf_num);
}


x86 assembly (clang, -O0):
<cf01>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x5,-0x34(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movsd  0xeac(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xe7c(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe67(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xe52(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movsd  0xe2a(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xe12(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xdfa(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xde2(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x0,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1050 <rosenbrock_func@plt>
movslq -0x30(%rbp),%rax
movsd  0xd64(%rip),%xmm0
mulsd  -0x60(%rbp,%rax,8),%xmm0
movsd  0xd56(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
movl   $0x1,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1080 <dif_powers_func@plt>
movslq -0x30(%rbp),%rax
movsd  0xcea(%rip),%xmm0
mulsd  -0x60(%rbp,%rax,8),%xmm0
movsd  0xce4(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
movl   $0x2,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1030 <bent_cigar_func@plt>
movslq -0x30(%rbp),%rax
movsd  0xc70(%rip),%xmm0
mulsd  -0x60(%rbp,%rax,8),%xmm0
movsd  0xc72(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
movl   $0x3,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1090 <discus_func@plt>
movslq -0x30(%rbp),%rax
movsd  0xbf6(%rip),%xmm0
mulsd  -0x60(%rbp,%rax,8),%xmm0
movsd  0xbf0(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
movl   $0x4,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
xor    %r9d,%r9d
call   1070 <sphere_func@plt>
movslq -0x30(%rbp),%rax
movsd  0xb7d(%rip),%xmm0
mulsd  -0x60(%rbp,%rax,8),%xmm0
movsd  0xb67(%rip),%xmm1
divsd  %xmm1,%xmm0
movslq -0x30(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
lea    -0x90(%rbp),%r8
lea    -0xc0(%rbp),%r9
lea    -0x60(%rbp),%r10
mov    -0x34(%rbp),%eax
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
call   1060 <cf_cal@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cf01>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9d,%r12d
mov    %r8,%r13
mov    %rcx,%r15
mov    %edx,%ebp
mov    %rsi,%r14
mov    %rdi,%rbx
movaps 0xe77(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe7b(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movabs $0x4049000000000000,%rax
mov    %rax,0x80(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe65(%rip),%xmm0
movups %xmm0,0x38(%rsp)
movaps 0xe69(%rip),%xmm0
movups %xmm0,0x48(%rsp)
mov    %rsp,%rsi
call   1040 <rosenbrock_func@plt>
movsd  0xe64(%rip),%xmm1
movsd  (%rsp),%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
lea    0x8(%rsp),%rsi
movslq %ebp,%rbp
lea    (%r15,%rbp,8),%rcx
mov    %ebp,%eax
imul   %eax,%eax
lea    0x0(,%rax,8),%r8
add    %r13,%r8
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r12d,%r9d
call   1070 <dif_powers_func@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xe1b(%rip),%xmm0
divsd  0xe1b(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x10(%rsp),%rsi
lea    0x0(%rbp,%rbp,1),%eax
cltq
lea    (%r15,%rax,8),%rcx
imul   %ebp,%eax
cltq
lea    0x0(,%rax,8),%r8
add    %r13,%r8
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r12d,%r9d
call   1030 <bent_cigar_func@plt>
movsd  0x10(%rsp),%xmm0
mulsd  0xdd3(%rip),%xmm0
divsd  0xddb(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0x18(%rsp),%rsi
lea    0x0(%rbp,%rbp,2),%eax
cltq
lea    (%r15,%rax,8),%rcx
imul   %ebp,%eax
cltq
lea    0x0(,%rax,8),%r8
add    %r13,%r8
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r12d,%r9d
call   1080 <discus_func@plt>
movsd  0x18(%rsp),%xmm0
mulsd  0xd8b(%rip),%xmm0
divsd  0xd8b(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0x20(%rsp),%rsi
lea    0x0(,%rbp,4),%eax
cltq
lea    (%r15,%rax,8),%rcx
imul   %ebp,%eax
cltq
lea    0x0(,%rax,8),%r8
add    %r13,%r8
mov    %rbx,%rdi
mov    %ebp,%edx
xor    %r9d,%r9d
call   1060 <sphere_func@plt>
movsd  0xd46(%rip),%xmm0
mulsd  0x20(%rsp),%xmm0
divsd  0xd50(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0x60(%rsp),%r8
lea    0x30(%rsp),%r9
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    %r15,%rcx
push   $0x5
lea    0x8(%rsp),%rax
push   %rax
call   1050 <cf_cal@plt>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @cf01(double* %0, double* %1, i32 %2, double* %3, double* %4, i32 %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [5 x double]
%16 = alloca [5 x double]
%17 = alloca [5 x double]
store double* %0, double** %7
store double* %1, double** %8
store i32 %2, i32* %9
store double* %3, double** %10
store double* %4, double** %11
store i32 %5, i32* %12
store i32 5, i32* %14
%18 = bitcast [5 x double]* %16 to i8*
%19 = bitcast i8* %18 to [5 x double]*
%20 = getelementptr inbounds [5 x double], [5 x double]* %19, i32 0, i32 0
store double 1.000000e+01, double* %20
%21 = getelementptr inbounds [5 x double], [5 x double]* %19, i32 0, i32 1
store double 2.000000e+01, double* %21
%22 = getelementptr inbounds [5 x double], [5 x double]* %19, i32 0, i32 2
store double 3.000000e+01, double* %22
%23 = getelementptr inbounds [5 x double], [5 x double]* %19, i32 0, i32 3
store double 4.000000e+01, double* %23
%24 = getelementptr inbounds [5 x double], [5 x double]* %19, i32 0, i32 4
store double 5.000000e+01, double* %24
%25 = bitcast [5 x double]* %17 to i8*
%26 = bitcast i8* %25 to [5 x double]*
%27 = getelementptr inbounds [5 x double], [5 x double]* %26, i32 0, i32 1
store double 1.000000e+02, double* %27
%28 = getelementptr inbounds [5 x double], [5 x double]* %26, i32 0, i32 2
store double 2.000000e+02, double* %28
%29 = getelementptr inbounds [5 x double], [5 x double]* %26, i32 0, i32 3
store double 3.000000e+02, double* %29
%30 = getelementptr inbounds [5 x double], [5 x double]* %26, i32 0, i32 4
store double 4.000000e+02, double* %30
store i32 0, i32* %13
%31 = load double*, double** %7
%32 = load i32, i32* %13
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %33
%35 = load i32, i32* %9
%36 = load double*, double** %10
%37 = load i32, i32* %13
%38 = load i32, i32* %9
%39 = mul nsw i32 %37, %38
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %36, i64 %40
%42 = load double*, double** %11
%43 = load i32, i32* %13
%44 = load i32, i32* %9
%45 = mul nsw i32 %43, %44
%46 = load i32, i32* %9
%47 = mul nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %42, i64 %48
%50 = load i32, i32* %12
%51 = call i32 @rosenbrock_func(double* %31, double* %34, i32 %35, double* %41, double* %49, i32 %50)
%52 = load i32, i32* %13
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %53
%55 = load double, double* %54
%56 = fmul double 1.000000e+04, %55
%57 = fdiv double %56, 1.000000e+04
%58 = load i32, i32* %13
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %59
store double %57, double* %60
store i32 1, i32* %13
%61 = load double*, double** %7
%62 = load i32, i32* %13
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %63
%65 = load i32, i32* %9
%66 = load double*, double** %10
%67 = load i32, i32* %13
%68 = load i32, i32* %9
%69 = mul nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %66, i64 %70
%72 = load double*, double** %11
%73 = load i32, i32* %13
%74 = load i32, i32* %9
%75 = mul nsw i32 %73, %74
%76 = load i32, i32* %9
%77 = mul nsw i32 %75, %76
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %72, i64 %78
%80 = load i32, i32* %12
%81 = call i32 @dif_powers_func(double* %61, double* %64, i32 %65, double* %71, double* %79, i32 %80)
%82 = load i32, i32* %13
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %83
%85 = load double, double* %84
%86 = fmul double 1.000000e+04, %85
%87 = fdiv double %86, 1.000000e+10
%88 = load i32, i32* %13
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %89
store double %87, double* %90
store i32 2, i32* %13
%91 = load double*, double** %7
%92 = load i32, i32* %13
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %93
%95 = load i32, i32* %9
%96 = load double*, double** %10
%97 = load i32, i32* %13
%98 = load i32, i32* %9
%99 = mul nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %96, i64 %100
%102 = load double*, double** %11
%103 = load i32, i32* %13
%104 = load i32, i32* %9
%105 = mul nsw i32 %103, %104
%106 = load i32, i32* %9
%107 = mul nsw i32 %105, %106
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %102, i64 %108
%110 = load i32, i32* %12
%111 = call i32 @bent_cigar_func(double* %91, double* %94, i32 %95, double* %101, double* %109, i32 %110)
%112 = load i32, i32* %13
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %113
%115 = load double, double* %114
%116 = fmul double 1.000000e+04, %115
%117 = fdiv double %116, 1.000000e+30
%118 = load i32, i32* %13
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %119
store double %117, double* %120
store i32 3, i32* %13
%121 = load double*, double** %7
%122 = load i32, i32* %13
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %123
%125 = load i32, i32* %9
%126 = load double*, double** %10
%127 = load i32, i32* %13
%128 = load i32, i32* %9
%129 = mul nsw i32 %127, %128
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %126, i64 %130
%132 = load double*, double** %11
%133 = load i32, i32* %13
%134 = load i32, i32* %9
%135 = mul nsw i32 %133, %134
%136 = load i32, i32* %9
%137 = mul nsw i32 %135, %136
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %132, i64 %138
%140 = load i32, i32* %12
%141 = call i32 @discus_func(double* %121, double* %124, i32 %125, double* %131, double* %139, i32 %140)
%142 = load i32, i32* %13
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %143
%145 = load double, double* %144
%146 = fmul double 1.000000e+04, %145
%147 = fdiv double %146, 1.000000e+10
%148 = load i32, i32* %13
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %149
store double %147, double* %150
store i32 4, i32* %13
%151 = load double*, double** %7
%152 = load i32, i32* %13
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %153
%155 = load i32, i32* %9
%156 = load double*, double** %10
%157 = load i32, i32* %13
%158 = load i32, i32* %9
%159 = mul nsw i32 %157, %158
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %156, i64 %160
%162 = load double*, double** %11
%163 = load i32, i32* %13
%164 = load i32, i32* %9
%165 = mul nsw i32 %163, %164
%166 = load i32, i32* %9
%167 = mul nsw i32 %165, %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %162, i64 %168
%170 = call i32 @sphere_func(double* %151, double* %154, i32 %155, double* %161, double* %169, i32 0)
%171 = load i32, i32* %13
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %172
%174 = load double, double* %173
%175 = fmul double 1.000000e+04, %174
%176 = fdiv double %175, 1.000000e+05
%177 = load i32, i32* %13
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 %178
store double %176, double* %179
%180 = load double*, double** %7
%181 = load double*, double** %8
%182 = load i32, i32* %9
%183 = load double*, double** %10
%184 = getelementptr inbounds [5 x double], [5 x double]* %16, i64 0, i64 0
%185 = getelementptr inbounds [5 x double], [5 x double]* %17, i64 0, i64 0
%186 = getelementptr inbounds [5 x double], [5 x double]* %15, i64 0, i64 0
%187 = load i32, i32* %14
%188 = call i32 @cf_cal(double* %180, double* %181, i32 %182, double* %183, double* %184, double* %185, double* %186, i32 %187)
ret void
}

LLVM IR (-O2):
define void @cf01(double* %0, double* %1, i32 %2, double* %3, double* %4, i32 %5) {
%7 = alloca [5 x double]
%8 = alloca [5 x double]
%9 = alloca [5 x double]
%10 = bitcast [5 x double]* %7 to i8*
%11 = bitcast [5 x double]* %8 to i8*
%12 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%13 = bitcast [5 x double]* %8 to <2 x double>*
store <2 x double> <double 1.000000e+01, double 2.000000e+01>, <2 x double>* %13
%14 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 2
%15 = bitcast double* %14 to <2 x double>*
store <2 x double> <double 3.000000e+01, double 4.000000e+01>, <2 x double>* %15
%16 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 4
store double 5.000000e+01, double* %16
%17 = bitcast [5 x double]* %9 to i8*
%18 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 1
%19 = bitcast double* %18 to <2 x double>*
store <2 x double> <double 1.000000e+02, double 2.000000e+02>, <2 x double>* %19
%20 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 3
%21 = bitcast double* %20 to <2 x double>*
store <2 x double> <double 3.000000e+02, double 4.000000e+02>, <2 x double>* %21
%22 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 0
%23 = call i32 @rosenbrock_func(double* %0, double* %22, i32 %2, double* %3, double* %4, i32 %5)
%24 = load double, double* %22
%25 = fmul double %24, 1.000000e+04
%26 = fdiv double %25, 1.000000e+04
store double %26, double* %22
%27 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 1
%28 = sext i32 %2 to i64
%29 = getelementptr inbounds double, double* %3, i64 %28
%30 = mul nsw i32 %2, %2
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds double, double* %4, i64 %31
%33 = call i32 @dif_powers_func(double* %0, double* %27, i32 %2, double* %29, double* %32, i32 %5)
%34 = load double, double* %27
%35 = fmul double %34, 1.000000e+04
%36 = fdiv double %35, 1.000000e+10
store double %36, double* %27
%37 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 2
%38 = shl nsw i32 %2, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %3, i64 %39
%41 = mul nsw i32 %38, %2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %4, i64 %42
%44 = call i32 @bent_cigar_func(double* %0, double* %37, i32 %2, double* %40, double* %43, i32 %5)
%45 = load double, double* %37
%46 = fmul double %45, 1.000000e+04
%47 = fdiv double %46, 1.000000e+30
store double %47, double* %37
%48 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 3
%49 = mul nsw i32 %2, 3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %3, i64 %50
%52 = mul nsw i32 %49, %2
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %4, i64 %53
%55 = call i32 @discus_func(double* %0, double* %48, i32 %2, double* %51, double* %54, i32 %5)
%56 = load double, double* %48
%57 = fmul double %56, 1.000000e+04
%58 = fdiv double %57, 1.000000e+10
store double %58, double* %48
%59 = getelementptr inbounds [5 x double], [5 x double]* %7, i64 0, i64 4
%60 = shl nsw i32 %2, 2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %3, i64 %61
%63 = mul nsw i32 %60, %2
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %4, i64 %64
%66 = call i32 @sphere_func(double* %0, double* %59, i32 %2, double* %62, double* %65, i32 0)
%67 = load double, double* %59
%68 = fmul double %67, 1.000000e+04
%69 = fdiv double %68, 1.000000e+05
store double %69, double* %59
%70 = getelementptr inbounds [5 x double], [5 x double]* %9, i64 0, i64 0
%71 = call i32 @cf_cal(double* %0, double* %1, i32 %2, double* %3, double* %12, double* %70, double* %22, i32 5)
ret void
}