#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void sensitivity_out(char *jobnamec, double *dgdxglob, int *neq, int *nobject,
                     double *g0) {
  char sensitivities[132] = "", nominal[132] = "";
  int i = 0, iobject = 0;
  FILE *f1;
  strcpy(sensitivities, jobnamec);
  strcat(sensitivities, ".sen");
  if ((f1 = fopen(sensitivities, "w")) == NULL) {
    printf("*ERROR in sensitivity: cannot open sensitivity vector file for "
           "writing...");
    exit(0);
  }
  fprintf(f1, "---------------------------------- \n");
  fprintf(f1, "Objective \n");
  fprintf(f1, "---------------------------------- \n");
  for (i = 0; i < neq[1]; i++) {
    for (iobject = 0; iobject < *nobject; iobject++) {
      fprintf(f1, "%12.5E",
              (double)dgdxglob[3 + 5 * i + (5 * neq[1] + 2) * iobject]);
      fprintf(f1, ";  ");
    }
    fprintf(f1, "\n");
  }
  fclose(f1);
  strcpy(nominal, jobnamec);
  strcat(nominal, ".nom");
  if ((f1 = fopen(nominal, "w")) == NULL) {
    printf("*ERROR in sensitivity: cannot open sensitivity vector file for "
           "writing...");
    exit(0);
  }
  fprintf(f1, "---------------------------------- \n");
  fprintf(f1, "Objective \n");
  fprintf(f1, "---------------------------------- \n");
  for (iobject = 0; iobject < *nobject; iobject++) {
    fprintf(f1, "%12.5E", (double)g0[iobject]);
    fprintf(f1, ";  ");
  }
  fprintf(f1, "\n");
  fclose(f1);
  return;
}


x86 assembly (clang, -O0):
<sensitivity_out>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x84,%edx
call   1060 <memset@plt>
lea    -0x140(%rbp),%rdi
xor    %esi,%esi
mov    $0x84,%edx
call   1060 <memset@plt>
movl   $0x0,-0x144(%rbp)
movl   $0x0,-0x148(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe09(%rip),%rsi
call   1090 <strcat@plt>
lea    -0xb0(%rbp),%rdi
lea    0xdfb(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x150(%rbp)
cmp    $0x0,%rax
jne    1233 <sensitivity_out+0xb3>
lea    0xde0(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x150(%rbp),%rdi
lea    0xe10(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x144(%rbp)
mov    -0x144(%rbp),%eax
mov    -0x18(%rbp),%rcx
cmp    0x4(%rcx),%eax
jge    133c <sensitivity_out+0x1bc>
movl   $0x0,-0x148(%rbp)
mov    -0x148(%rbp),%eax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%eax
jge    1313 <sensitivity_out+0x193>
mov    -0x150(%rbp),%rdi
mov    -0x10(%rbp),%rax
imul   $0x5,-0x144(%rbp),%ecx
add    $0x3,%ecx
mov    -0x18(%rbp),%rdx
imul   $0x5,0x4(%rdx),%edx
add    $0x2,%edx
imul   -0x148(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd9f(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xd91(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x148(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x148(%rbp)
jmp    1299 <sensitivity_out+0x119>
mov    -0x150(%rbp),%rdi
lea    0xd53(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x144(%rbp)
jmp    127c <sensitivity_out+0xfc>
mov    -0x150(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x140(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x140(%rbp),%rdi
lea    0xd27(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x140(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x150(%rbp)
cmp    $0x0,%rax
jne    13a2 <sensitivity_out+0x222>
lea    0xc71(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x150(%rbp),%rdi
lea    0xca1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xcb1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xc77(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x148(%rbp)
mov    -0x148(%rbp),%eax
mov    -0x20(%rbp),%rcx
cmp    (%rcx),%eax
jge    144b <sensitivity_out+0x2cb>
mov    -0x150(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x148(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc67(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
lea    0xc59(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x148(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x148(%rbp)
jmp    13eb <sensitivity_out+0x26b>
mov    -0x150(%rbp),%rdi
lea    0xc1b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x150(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sensitivity_out>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,%rbx
mov    %rsi,%r13
mov    %rdi,%rsi
xorps  %xmm0,%xmm0
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movl   $0x0,0x130(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movl   $0x0,0xa0(%rsp)
lea    0xb0(%rsp),%rbp
mov    %rbp,%rdi
mov    %rsi,0x18(%rsp)
call   1030 <strcpy@plt>
lea    0xda9(%rip),%rsi
mov    %rbp,%rdi
call   1090 <strcat@plt>
lea    0xd9f(%rip),%rsi
mov    %rbp,%rdi
call   1080 <fopen@plt>
test   %rax,%rax
je     148c <sensitivity_out+0x2fc>
mov    %rax,%rbp
lea    0xdd0(%rip),%r14
mov    $0x24,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rax,%rcx
call   10b0 <fwrite@plt>
lea    0xdd9(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   10b0 <fwrite@plt>
mov    $0x24,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbp,%rcx
call   10b0 <fwrite@plt>
mov    0x4(%rbx),%eax
test   %eax,%eax
jle    1376 <sensitivity_out+0x1e6>
xor    %ecx,%ecx
mov    %rcx,(%rsp)
lea    0xdad(%rip),%r14
jmp    1302 <sensitivity_out+0x172>
xchg   %ax,%ax
mov    $0xa,%edi
mov    %rbp,%rsi
call   1060 <fputc@plt>
mov    (%rsp),%rdx
add    $0x1,%edx
mov    0x4(%rbx),%eax
mov    %rdx,%rcx
mov    %rdx,(%rsp)
cmp    %eax,%edx
jge    1376 <sensitivity_out+0x1e6>
mov    0x8(%rsp),%rcx
cmpl   $0x0,(%rcx)
jle    12e0 <sensitivity_out+0x150>
mov    (%rsp),%rcx
lea    (%rcx,%rcx,4),%r12d
add    $0x3,%r12d
mov    $0x1,%r15d
xchg   %ax,%ax
lea    -0x1(%r15),%ecx
lea    (%rax,%rax,4),%eax
add    $0x2,%eax
imul   %ecx,%eax
add    %r12d,%eax
cltq
movsd  0x0(%r13,%rax,8),%xmm0
mov    %rbp,%rdi
lea    0xd3f(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbp,%rcx
call   10b0 <fwrite@plt>
mov    0x8(%rsp),%rax
cmp    (%rax),%r15d
jge    12e0 <sensitivity_out+0x150>
mov    0x4(%rbx),%eax
add    $0x1,%r15d
jmp    1320 <sensitivity_out+0x190>
mov    %rbp,%rdi
call   1040 <fclose@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    0x18(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0xcf6(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcat@plt>
lea    0xc5f(%rip),%rsi
mov    %rbx,%rdi
call   1080 <fopen@plt>
test   %rax,%rax
je     148c <sensitivity_out+0x2fc>
mov    %rax,%rbx
lea    0xc90(%rip),%rbp
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rax,%rcx
call   10b0 <fwrite@plt>
lea    0xc99(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
mov    0x8(%rsp),%r13
cmpl   $0x0,0x0(%r13)
mov    0x10(%rsp),%r12
jle    1465 <sensitivity_out+0x2d5>
xor    %ebp,%ebp
lea    0xc64(%rip),%r14
lea    0xc64(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r12,%rbp,8),%xmm0
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
add    $0x1,%rbp
movslq 0x0(%r13),%rax
cmp    %rax,%rbp
jl     1430 <sensitivity_out+0x2a0>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb74(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c".sen\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [74 x i8] c"*ERROR in sensitivity: cannot open sensitivity vector file for writing...\00"
@.str.3 = [37 x i8] c"---------------------------------- \0A\00"
@.str.4 = [12 x i8] c"Objective \0A\00"
@.str.5 = [7 x i8] c"%12.5E\00"
@.str.6 = [4 x i8] c"; \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [5 x i8] c".nom\00"
define void @sensitivity_out(i8* %0, double* %1, i32* %2, i32* %3, double* %4) {
%6 = alloca i8*
%7 = alloca double*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca double*
%11 = alloca [132 x i8]
%12 = alloca [132 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32*
store i8* %0, i8** %6
store double* %1, double** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store double* %4, double** %10
%16 = bitcast [132 x i8]* %11 to i8*
%17 = bitcast [132 x i8]* %12 to i8*
store i32 0, i32* %13
store i32 0, i32* %14
%18 = getelementptr inbounds [132 x i8], [132 x i8]* %11, i64 0, i64 0
%19 = load i8*, i8** %6
%20 = call i32 @strcpy(i8* %18, i8* %19)
%21 = getelementptr inbounds [132 x i8], [132 x i8]* %11, i64 0, i64 0
%22 = call i32 @strcat(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds [132 x i8], [132 x i8]* %11, i64 0, i64 0
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %24, i32** %15
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %29
26: ; preds = %5
%27 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @exit(i32 0)
unreachable
29: ; preds = %5
%30 = load i32*, i32** %15
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%32 = load i32*, i32** %15
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%34 = load i32*, i32** %15
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %13
br label %36
36: ; preds = %74, %29
%37 = load i32, i32* %13
%38 = load i32*, i32** %8
%39 = getelementptr inbounds i32, i32* %38, i64 1
%40 = load i32, i32* %39
%41 = icmp slt i32 %37, %40
br i1 %41, label %42, label %77
42: ; preds = %36
store i32 0, i32* %14
br label %43
43: ; preds = %68, %42
%44 = load i32, i32* %14
%45 = load i32*, i32** %9
%46 = load i32, i32* %45
%47 = icmp slt i32 %44, %46
br i1 %47, label %48, label %71
48: ; preds = %43
%49 = load i32*, i32** %15
%50 = load double*, double** %7
%51 = load i32, i32* %13
%52 = mul nsw i32 5, %51
%53 = add nsw i32 3, %52
%54 = load i32*, i32** %8
%55 = getelementptr inbounds i32, i32* %54, i64 1
%56 = load i32, i32* %55
%57 = mul nsw i32 5, %56
%58 = add nsw i32 %57, 2
%59 = load i32, i32* %14
%60 = mul nsw i32 %58, %59
%61 = add nsw i32 %53, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %50, i64 %62
%64 = load double, double* %63
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %64)
%66 = load i32*, i32** %15
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %68
68: ; preds = %48
%69 = load i32, i32* %14
%70 = add nsw i32 %69, 1
store i32 %70, i32* %14
br label %43
71: ; preds = %43
%72 = load i32*, i32** %15
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %74
74: ; preds = %71
%75 = load i32, i32* %13
%76 = add nsw i32 %75, 1
store i32 %76, i32* %13
br label %36
77: ; preds = %36
%78 = load i32*, i32** %15
%79 = call i32 @fclose(i32* %78)
%80 = getelementptr inbounds [132 x i8], [132 x i8]* %12, i64 0, i64 0
%81 = load i8*, i8** %6
%82 = call i32 @strcpy(i8* %80, i8* %81)
%83 = getelementptr inbounds [132 x i8], [132 x i8]* %12, i64 0, i64 0
%84 = call i32 @strcat(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%85 = getelementptr inbounds [132 x i8], [132 x i8]* %12, i64 0, i64 0
%86 = call i32* @fopen(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %86, i32** %15
%87 = icmp eq i32* %86, null
br i1 %87, label %88, label %91
88: ; preds = %77
%89 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%90 = call i32 @exit(i32 0)
unreachable
91: ; preds = %77
%92 = load i32*, i32** %15
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%94 = load i32*, i32** %15
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %94, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%96 = load i32*, i32** %15
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %96, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %14
br label %98
98: ; preds = %113, %91
%99 = load i32, i32* %14
%100 = load i32*, i32** %9
%101 = load i32, i32* %100
%102 = icmp slt i32 %99, %101
br i1 %102, label %103, label %116
103: ; preds = %98
%104 = load i32*, i32** %15
%105 = load double*, double** %10
%106 = load i32, i32* %14
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %105, i64 %107
%109 = load double, double* %108
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %104, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %109)
%111 = load i32*, i32** %15
%112 = call i32 (i32*, i8*, ...) @fprintf(i32* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %113
113: ; preds = %103
%114 = load i32, i32* %14
%115 = add nsw i32 %114, 1
store i32 %115, i32* %14
br label %98
116: ; preds = %98
%117 = load i32*, i32** %15
%118 = call i32 (i32*, i8*, ...) @fprintf(i32* %117, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%119 = load i32*, i32** %15
%120 = call i32 @fclose(i32* %119)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c".sen\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [74 x i8] c"*ERROR in sensitivity: cannot open sensitivity vector file for writing...\00"
@.str.3 = [37 x i8] c"---------------------------------- \0A\00"
@.str.4 = [12 x i8] c"Objective \0A\00"
@.str.5 = [7 x i8] c"%12.5E\00"
@.str.6 = [4 x i8] c"; \00"
@.str.8 = [5 x i8] c".nom\00"
define void @sensitivity_out(i8* %0, double* nocapture %1, i32* nocapture %2, i32* nocapture %3, double* nocapture %4) {
%6 = alloca [132 x i8]
%7 = alloca [132 x i8]
%8 = getelementptr inbounds [132 x i8], [132 x i8]* %6, i64 0, i64 0
%9 = getelementptr inbounds [132 x i8], [132 x i8]* %7, i64 0, i64 0
%10 = call i32 @strcpy(i8* %8, i8* %0)
%11 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %5
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @exit(i32 0)
unreachable
17: ; preds = %5
%18 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %12)
%19 = call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 11, i64 1, i32* %12)
%20 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %12)
%21 = getelementptr inbounds i32, i32* %2, i64 1
%22 = load i32, i32* %21
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %54
24: ; preds = %17, %49
%25 = phi i32 [ %52, %49 ], [ %22, %17 ]
%26 = phi i32 [ %51, %49 ], [ 0, %17 ]
%27 = load i32, i32* %3
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %49
29: ; preds = %24
%30 = mul nsw i32 %26, 5
%31 = add nuw nsw i32 %30, 3
br label %32
32: ; preds = %47, %29
%33 = phi i32 [ %25, %29 ], [ %48, %47 ]
%34 = phi i32 [ 0, %29 ], [ %44, %47 ]
%35 = mul nsw i32 %33, 5
%36 = add nsw i32 %35, 2
%37 = mul nsw i32 %36, %34
%38 = add nsw i32 %31, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %1, i64 %39
%41 = load double, double* %40
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %41)
%43 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %12)
%44 = add nuw nsw i32 %34, 1
%45 = load i32, i32* %3
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %32
%48 = load i32, i32* %21
br label %32
49: ; preds = %32, %24
%50 = call i32 @fputc(i32 10, i32* %12)
%51 = add nuw nsw i32 %26, 1
%52 = load i32, i32* %21
%53 = icmp slt i32 %51, %52
br i1 %53, label %24, label %54
54: ; preds = %49, %17
%55 = call i32 @fclose(i32* %12)
%56 = call i32 @strcpy(i8* %9, i8* %0)
%57 = call i32 @strcat(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%58 = call i32* @fopen(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%59 = icmp eq i32* %58, null
br i1 %59, label %60, label %63
60: ; preds = %54
%61 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.2, i64 0, i64 0))
%62 = call i32 @exit(i32 0)
unreachable
63: ; preds = %54
%64 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %58)
%65 = call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 11, i64 1, i32* %58)
%66 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %58)
%67 = load i32, i32* %3
%68 = icmp sgt i32 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %63, %69
%70 = phi i64 [ %75, %69 ], [ 0, %63 ]
%71 = getelementptr inbounds double, double* %4, i64 %70
%72 = load double, double* %71
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), double %72)
%74 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %58)
%75 = add nuw nsw i64 %70, 1
%76 = load i32, i32* %3
%77 = sext i32 %76 to i64
%78 = icmp slt i64 %75, %77
br i1 %78, label %69, label %79
79: ; preds = %69, %63
%80 = call i32 @fputc(i32 10, i32* %58)
%81 = call i32 @fclose(i32* %58)
ret void
}