#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 */
double atof(char *);
int atoi(char *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  int nbVal = argc - 4;
  int nbValIntermediaires;
  int v, i, j;
  int sizex, sizey;
  double valx, incx, tmpx;
  FILE *f;
  if (argc < 6) {
    printf("Usage : genIES <iesfile> sizex sizey val1 ... val\n");
    return 1;
  }
  sizex = atoi(argv[2]);
  sizey = atoi(argv[3]);
  if (sizex <= 0 || sizey <= 0) {
    printf("Wrong size\n");
    return 2;
  }
  if (((sizex + 1) % nbVal)) {
    printf("sizex must be a multiple of the number of values - 1\n");
    return 3;
  }
  if ((f = fopen(argv[1], "wt")) == NULL) {
    printf("Cannot open file %s\n", argv[1]);
    return 4;
  }
  fprintf(f, "SPV1.0\n#NBZENITH %d\n#NBAZIMUTH %d\n", sizex, sizey);
  nbValIntermediaires = sizex / (nbVal - 1);
  for (v = 4; v < argc - 1; v++) {
    incx = (atof(argv[v + 1]) - atof(argv[v])) / (double)(nbValIntermediaires);
    valx = atof(argv[v]);
    for (i = 0; i < nbValIntermediaires; i++) {
      for (j = 0; j < sizey; j++)
        fprintf(f, "%f ", valx);
      valx += incx;
      fprintf(f, "\n");
    }
  }
  for (j = 0; j < sizey; j++)
    fprintf(f, "%f ", atof(argv[argc - 1]));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    1193 <main+0x43>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13d2 <main+0x282>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x28(%rbp)
jle    11c7 <main+0x77>
cmpl   $0x0,-0x2c(%rbp)
jg     11e1 <main+0x91>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13d2 <main+0x282>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
je     120e <main+0xbe>
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x3,-0x4(%rbp)
jmp    13d2 <main+0x282>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe58(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    1252 <main+0x102>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x4(%rbp)
jmp    13d2 <main+0x282>
mov    -0x50(%rbp),%rdi
mov    -0x28(%rbp),%edx
mov    -0x2c(%rbp),%ecx
lea    0xe2a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
movl   $0x4,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    137a <main+0x22a>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
subsd  %xmm1,%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1367 <main+0x217>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1338 <main+0x1e8>
mov    -0x50(%rbp),%rdi
movsd  -0x38(%rbp),%xmm0
lea    0xd8d(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1307 <main+0x1b7>
movsd  -0x40(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x50(%rbp),%rdi
lea    0xd21(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12f4 <main+0x1a4>
jmp    136c <main+0x21c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1280 <main+0x130>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13cb <main+0x27b>
mov    -0x50(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <atof@plt>
mov    -0x60(%rbp),%rdi
lea    0xcfa(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1381 <main+0x231>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
cmp    $0x5,%edi
jg     1196 <main+0x26>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
jmp    11ef <main+0x7f>
mov    %rsi,%r13
mov    %edi,%r12d
mov    0x10(%rsi),%rdi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    0x18(%r13),%rdi
call   1090 <atoi@plt>
test   %ebp,%ebp
jle    11de <main+0x6e>
mov    %eax,%r14d
test   %eax,%eax
jle    11de <main+0x6e>
lea    -0x4(%r12),%ecx
lea    0x1(%rbp),%eax
xor    %edx,%edx
div    %ecx
test   %edx,%edx
je     1200 <main+0x90>
lea    0xe6d(%rip),%rdi
call   1030 <puts@plt>
mov    $0x3,%ebp
jmp    11ef <main+0x7f>
lea    0xe8f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%ebp
mov    %ebp,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%r13),%rdi
lea    0xdf5(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1372 <main+0x202>
mov    %rax,%rbx
lea    0xdf5(%rip),%rsi
mov    %rax,%rdi
mov    %ebp,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    -0x5(%r12),%ecx
mov    %rbp,0x28(%rsp)
mov    %ebp,%eax
xor    %edx,%edx
mov    %ecx,0x1c(%rsp)
div    %ecx
mov    %eax,%ebp
add    $0xffffffff,%r12d
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
mov    $0x4,%eax
lea    0xdd9(%rip),%r15
mov    %r13,0x38(%rsp)
mov    %r12,0x30(%rsp)
jmp    1288 <main+0x118>
xchg   %ax,%ax
mov    0x30(%rsp),%r12
mov    0x40(%rsp),%rax
cmp    %r12,%rax
mov    0x38(%rsp),%r13
je     1336 <main+0x1c6>
mov    %rax,%r12
add    $0x1,%rax
mov    %rax,0x40(%rsp)
mov    0x8(%r13,%r12,8),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x10(%rsp)
mov    0x0(%r13,%r12,8),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    0x1c(%rsp),%eax
cmp    0x28(%rsp),%eax
ja     1270 <main+0x100>
movsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
divsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %r12d,%r12d
nopl   0x0(%rax)
mov    %r14d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1070 <fprintf@plt>
add    $0xffffffff,%r13d
jne    12f0 <main+0x180>
movsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0xa,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
add    $0x1,%r12d
cmp    %ebp,%r12d
jne    12e0 <main+0x170>
jmp    1270 <main+0x100>
xor    %ebp,%ebp
test   %r14d,%r14d
jle    11ef <main+0x7f>
movslq %r12d,%r15
lea    0xcf0(%rip),%r12
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%r15,8),%rdi
call   1040 <atof@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
add    $0xffffffff,%r14d
jne    1350 <main+0x1e0>
jmp    11ef <main+0x7f>
mov    0x8(%r13),%rsi
lea    0xc86(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%ebp
jmp    11ef <main+0x7f>

LLVM IR (-O0):
@.str = [51 x i8] c"Usage : genIES <iesfile> sizex sizey val1 ... val\0A\00"
@.str.1 = [12 x i8] c"Wrong size\0A\00"
@.str.2 = [54 x i8] c"sizex must be a multiple of the number of values - 1\0A\00"
@.str.3 = [3 x i8] c"wt\00"
@.str.4 = [21 x i8] c"Cannot open file %s\0A\00"
@.str.5 = [35 x i8] c"SPV1.0\0A#NBZENITH %d\0A#NBAZIMUTH %d\0A\00"
@.str.6 = [4 x i8] c"%f \00"
@.str.7 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = sub nsw i32 %17, 4
store i32 %18, i32* %6
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 6
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %144
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
store i32 %27, i32* %11
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 3
%30 = load i8*, i8** %29
%31 = call i32 @atoi(i8* %30)
store i32 %31, i32* %12
%32 = load i32, i32* %11
%33 = icmp sle i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %23
%35 = load i32, i32* %12
%36 = icmp sle i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34, %23
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
store i32 2, i32* %3
br label %144
39: ; preds = %34
%40 = load i32, i32* %11
%41 = add nsw i32 %40, 1
%42 = load i32, i32* %6
%43 = srem i32 %41, %42
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
store i32 3, i32* %3
br label %144
47: ; preds = %39
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 1
%50 = load i8*, i8** %49
%51 = call i32* @fopen(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %51, i32** %16
%52 = icmp eq i32* %51, null
br i1 %52, label %53, label %58
53: ; preds = %47
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 1
%56 = load i8*, i8** %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %56)
store i32 4, i32* %3
br label %144
58: ; preds = %47
%59 = load i32*, i32** %16
%60 = load i32, i32* %11
%61 = load i32, i32* %12
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %60, i32 %61)
%63 = load i32, i32* %11
%64 = load i32, i32* %6
%65 = sub nsw i32 %64, 1
%66 = sdiv i32 %63, %65
store i32 %66, i32* %7
store i32 4, i32* %8
br label %67
67: ; preds = %122, %58
%68 = load i32, i32* %8
%69 = load i32, i32* %4
%70 = sub nsw i32 %69, 1
%71 = icmp slt i32 %68, %70
br i1 %71, label %72, label %125
72: ; preds = %67
%73 = load i8**, i8*** %5
%74 = load i32, i32* %8
%75 = add nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8*, i8** %73, i64 %76
%78 = load i8*, i8** %77
%79 = call double @atof(i8* %78)
%80 = load i8**, i8*** %5
%81 = load i32, i32* %8
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8*, i8** %80, i64 %82
%84 = load i8*, i8** %83
%85 = call double @atof(i8* %84)
%86 = fsub double %79, %85
%87 = load i32, i32* %7
%88 = sitofp i32 %87 to double
%89 = fdiv double %86, %88
store double %89, double* %14
%90 = load i8**, i8*** %5
%91 = load i32, i32* %8
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8*, i8** %90, i64 %92
%94 = load i8*, i8** %93
%95 = call double @atof(i8* %94)
store double %95, double* %13
store i32 0, i32* %9
br label %96
96: ; preds = %118, %72
%97 = load i32, i32* %9
%98 = load i32, i32* %7
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %121
100: ; preds = %96
store i32 0, i32* %10
br label %101
101: ; preds = %109, %100
%102 = load i32, i32* %10
%103 = load i32, i32* %12
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %112
105: ; preds = %101
%106 = load i32*, i32** %16
%107 = load double, double* %13
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %107)
br label %109
109: ; preds = %105
%110 = load i32, i32* %10
%111 = add nsw i32 %110, 1
store i32 %111, i32* %10
br label %101
112: ; preds = %101
%113 = load double, double* %14
%114 = load double, double* %13
%115 = fadd double %114, %113
store double %115, double* %13
%116 = load i32*, i32** %16
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %116, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %118
118: ; preds = %112
%119 = load i32, i32* %9
%120 = add nsw i32 %119, 1
store i32 %120, i32* %9
br label %96
121: ; preds = %96
br label %122
122: ; preds = %121
%123 = load i32, i32* %8
%124 = add nsw i32 %123, 1
store i32 %124, i32* %8
br label %67
125: ; preds = %67
store i32 0, i32* %10
br label %126
126: ; preds = %140, %125
%127 = load i32, i32* %10
%128 = load i32, i32* %12
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %143
130: ; preds = %126
%131 = load i32*, i32** %16
%132 = load i8**, i8*** %5
%133 = load i32, i32* %4
%134 = sub nsw i32 %133, 1
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8*, i8** %132, i64 %135
%137 = load i8*, i8** %136
%138 = call double @atof(i8* %137)
%139 = call i32 (i32*, i8*, ...) @fprintf(i32* %131, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %138)
br label %140
140: ; preds = %130
%141 = load i32, i32* %10
%142 = add nsw i32 %141, 1
store i32 %142, i32* %10
br label %126
143: ; preds = %126
store i32 0, i32* %3
br label %144
144: ; preds = %143, %53, %45, %37, %21
%145 = load i32, i32* %3
ret i32 %145
}

LLVM IR (-O2):
@.str.3 = [3 x i8] c"wt\00"
@.str.4 = [21 x i8] c"Cannot open file %s\0A\00"
@.str.5 = [35 x i8] c"SPV1.0\0A#NBZENITH %d\0A#NBAZIMUTH %d\0A\00"
@.str.6 = [4 x i8] c"%f \00"
@str = [53 x i8] c"sizex must be a multiple of the number of values - 1\00"
@str.8 = [11 x i8] c"Wrong size\00"
@str.9 = [50 x i8] c"Usage : genIES <iesfile> sizex sizey val1 ... val\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = add nsw i32 %0, -4
%4 = icmp slt i32 %0, 6
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.9, i64 0, i64 0))
br label %79
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = tail call i32 @atoi(i8* %9)
%11 = getelementptr inbounds i8*, i8** %1, i64 3
%12 = load i8*, i8** %11
%13 = tail call i32 @atoi(i8* %12)
%14 = icmp slt i32 %10, 1
%15 = icmp slt i32 %13, 1
%16 = select i1 %14, i1 true, i1 %15
br i1 %16, label %17, label %19
17: ; preds = %7
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
br label %79
19: ; preds = %7
%20 = add nuw nsw i32 %10, 1
%21 = urem i32 %20, %3
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0))
br label %79
25: ; preds = %19
%26 = getelementptr inbounds i8*, i8** %1, i64 1
%27 = load i8*, i8** %26
%28 = tail call i32* @fopen(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i8*, i8** %26
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %31)
br label %79
33: ; preds = %25
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %10, i32 %13)
%35 = add nsw i32 %0, -5
%36 = udiv i32 %10, %35
%37 = add nsw i32 %0, -1
%38 = sitofp i32 %36 to double
%39 = icmp ugt i32 %35, %10
%40 = zext i32 %37 to i64
br label %48
41: ; preds = %67, %48
%42 = icmp eq i64 %50, %40
br i1 %42, label %43, label %48
43: ; preds = %41
%44 = icmp sgt i32 %13, 0
br i1 %44, label %45, label %79
45: ; preds = %43
%46 = sext i32 %37 to i64
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
br label %72
48: ; preds = %33, %41
%49 = phi i64 [ 4, %33 ], [ %50, %41 ]
%50 = add nuw nsw i64 %49, 1
%51 = getelementptr inbounds i8*, i8** %1, i64 %50
%52 = load i8*, i8** %51
%53 = tail call double @atof(i8* %52)
%54 = getelementptr inbounds i8*, i8** %1, i64 %49
%55 = load i8*, i8** %54
%56 = tail call double @atof(i8* %55)
%57 = fsub double %53, %56
%58 = fdiv double %57, %38
br i1 %39, label %41, label %59
59: ; preds = %48, %67
%60 = phi i32 [ %70, %67 ], [ 0, %48 ]
%61 = phi double [ %68, %67 ], [ %56, %48 ]
br label %62
62: ; preds = %59, %62
%63 = phi i32 [ %65, %62 ], [ 0, %59 ]
%64 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %61)
%65 = add nuw nsw i32 %63, 1
%66 = icmp eq i32 %65, %13
br i1 %66, label %67, label %62
67: ; preds = %62
%68 = fadd double %58, %61
%69 = tail call i32 @fputc(i32 10, i32* %28)
%70 = add nuw nsw i32 %60, 1
%71 = icmp eq i32 %70, %36
br i1 %71, label %41, label %59
72: ; preds = %45, %72
%73 = phi i32 [ 0, %45 ], [ %77, %72 ]
%74 = load i8*, i8** %47
%75 = tail call double @atof(i8* %74)
%76 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double %75)
%77 = add nuw nsw i32 %73, 1
%78 = icmp eq i32 %77, %13
br i1 %78, label %79, label %72
79: ; preds = %72, %43, %30, %23, %17, %5
%80 = phi i32 [ 1, %5 ], [ 2, %17 ], [ 3, %23 ], [ 4, %30 ], [ 0, %43 ], [ 0, %72 ]
ret i32 %80
}