#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 cos(double);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, double, int);
double sin(double);
int /*<<< orphan*/ sleep(int);
int main() {
  int i, j;
  FILE *fp;
  for (j = 0; j < 100; j++) {
    sleep(3);
    fp = fopen("wb9skytrack.txt", "w");
    for (i = 0; i < j + 1; i++) {
      fprintf(fp, "%lf,%lf,%d\n", 41.1 + 0.05 * cos(6.28 * i / 100.0),
              -87.7 + 0.05 * sin(6.28 * i / 100.0), i * 1120);
    }
    fclose(fp);
    fp = fopen("kc9ligtrack.txt", "w");
    for (i = 0; i < j + 1; i++) {
      fprintf(fp, "%lf,%lf,%d\n", 41.1 + 0.001 * i * cos(6.28 * i / 100.0),
              -87.7 + 0.001 * i * sin(6.28 * i / 100.0), i * 998);
    }
    fclose(fp);
    fp = fopen("kc9lhwtrack.txt", "w");
    for (i = 0; i < j + 1; i++) {
      fprintf(fp, "%lf,%lf,%d\n", 41.101 + 0.0005 * i * cos(6.28 * i / 100.0),
              -87.701 + 0.0015 * i * sin(6.28 * i / 100.0), i * 1200);
    }
    fclose(fp);
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    149c <main+0x33c>
mov    $0x3,%edi
call   1080 <sleep@plt>
lea    0xebf(%rip),%rdi
lea    0xec8(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1267 <main+0x107>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xe42(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe2e(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movsd  0xe5d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe49(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xe03(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xdef(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
mov    -0x28(%rbp),%rdi
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0xe12(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xdee(%rip),%xmm2
addsd  %xmm2,%xmm1
imul   $0x460,-0x8(%rbp),%edx
lea    0xe0e(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11a8 <main+0x48>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdf7(%rip),%rdi
lea    0xde2(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1376 <main+0x216>
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xd84(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xd46(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd32(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd4d(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xd2f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xcf1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xcdd(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
movsd  -0x40(%rbp),%xmm1
mov    -0x38(%rbp),%rdi
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  0xcdf(%rip),%xmm2
addsd  %xmm2,%xmm1
imul   $0x3e6,-0x8(%rbp),%edx
lea    0xcff(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    128e <main+0x12e>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xcf8(%rip),%rdi
lea    0xcd3(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1485 <main+0x325>
mov    -0x18(%rbp),%rax
mov    %rax,-0x58(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xc65(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xc37(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc23(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1060 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc1e(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xc00(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xbe2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xbce(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <sin@plt>
movsd  -0x60(%rbp),%xmm1
mov    -0x58(%rbp),%rdi
movaps %xmm0,%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  %xmm2,%xmm1
movsd  0xba0(%rip),%xmm2
addsd  %xmm2,%xmm1
imul   $0x4b0,-0x8(%rbp),%edx
lea    0xbf0(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    139d <main+0x23d>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1176 <main+0x16>
mov    $0x1,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    $0x1,%eax
mov    $0x460,%r14d
mov    $0x3e6,%r13d
mov    $0x4b0,%r15d
lea    0xede(%rip),%r12
nopl   0x0(%rax)
mov    %eax,0x24(%rsp)
mov    $0x3,%edi
call   1080 <sleep@plt>
lea    0xeb3(%rip),%rdi
lea    0xebc(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbp
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
mulsd  0xe2e(%rip),%xmm0
divsd  0xe2e(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1060 <cos@plt>
movapd %xmm0,%xmm1
movsd  0xe1f(%rip),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xe1b(%rip),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x10(%rsp),%xmm0
call   1050 <sin@plt>
movapd %xmm0,%xmm1
mulsd  0xdf7(%rip),%xmm1
addsd  0xdff(%rip),%xmm1
mov    %rbp,%rdi
mov    %r12,%rsi
movsd  (%rsp),%xmm0
mov    %ebx,%edx
call   1040 <fprintf@plt>
movsd  0x8(%rsp),%xmm1
addsd  0xde7(%rip),%xmm1
add    $0x460,%ebx
cmp    %ebx,%r14d
jne    11c0 <main+0x60>
mov    %r14d,0x20(%rsp)
mov    %rbp,%rdi
call   1030 <fclose@plt>
lea    0xe12(%rip),%rdi
lea    0xdfd(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbp
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  %xmm1,(%rsp)
movapd %xmm1,%xmm0
mulsd  0xd9f(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm1,%xmm0
mulsd  0xd5d(%rip),%xmm0
divsd  0xd5d(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
call   1060 <cos@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0xd54(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <sin@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xd39(%rip),%xmm1
mov    %rbp,%rdi
mov    %r12,%rsi
movsd  0x10(%rsp),%xmm0
mov    %ebx,%edx
call   1040 <fprintf@plt>
movsd  (%rsp),%xmm1
addsd  0xd21(%rip),%xmm1
add    $0x3e6,%ebx
cmp    %ebx,%r13d
jne    1280 <main+0x120>
mov    %rbp,%rdi
call   1030 <fclose@plt>
lea    0xd61(%rip),%rdi
lea    0xd3c(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbp
xorpd  %xmm1,%xmm1
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
mulsd  0xce6(%rip),%xmm0
movsd  %xmm0,(%rsp)
movapd %xmm1,%xmm0
mulsd  0xc9d(%rip),%xmm0
divsd  0xc9d(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1060 <cos@plt>
mulsd  (%rsp),%xmm0
addsd  0xcbd(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xcb2(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x10(%rsp),%xmm0
call   1050 <sin@plt>
movsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xc97(%rip),%xmm1
mov    %rbp,%rdi
mov    %r12,%rsi
movsd  (%rsp),%xmm0
mov    %r14d,%edx
call   1040 <fprintf@plt>
movsd  0x8(%rsp),%xmm1
addsd  0xc4e(%rip),%xmm1
add    $0x4b0,%r14d
cmp    %r14d,%r15d
jne    1340 <main+0x1e0>
mov    %rbp,%rdi
call   1030 <fclose@plt>
mov    0x24(%rsp),%eax
add    $0x1,%eax
mov    0x20(%rsp),%r14d
add    $0x460,%r14d
add    $0x3e6,%r13d
add    $0x4b0,%r15d
cmp    $0x65,%eax
jne    1190 <main+0x30>
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"wb9skytrack.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [12 x i8] c"%lf,%lf,%d\0A\00"
@.str.3 = [16 x i8] c"kc9ligtrack.txt\00"
@.str.4 = [16 x i8] c"kc9lhwtrack.txt\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %3
br label %5
5: ; preds = %109, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %112
8: ; preds = %5
%9 = call i32 @sleep(i32 3)
%10 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %10, i32** %4
store i32 0, i32* %2
br label %11
11: ; preds = %33, %8
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %36
16: ; preds = %11
%17 = load i32*, i32** %4
%18 = load i32, i32* %2
%19 = sitofp i32 %18 to double
%20 = fmul double 6.280000e+00, %19
%21 = fdiv double %20, 1.000000e+02
%22 = call double @cos(double %21)
%23 = call double @llvm.fmuladd.f64(double 5.000000e-02, double %22, double 4.110000e+01)
%24 = load i32, i32* %2
%25 = sitofp i32 %24 to double
%26 = fmul double 6.280000e+00, %25
%27 = fdiv double %26, 1.000000e+02
%28 = call double @sin(double %27)
%29 = call double @llvm.fmuladd.f64(double 5.000000e-02, double %28, double -8.770000e+01)
%30 = load i32, i32* %2
%31 = mul nsw i32 %30, 1120
%32 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %23, double %29, i32 %31)
br label %33
33: ; preds = %16
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %11
36: ; preds = %11
%37 = load i32*, i32** %4
%38 = call i32 @fclose(i32* %37)
%39 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %39, i32** %4
store i32 0, i32* %2
br label %40
40: ; preds = %68, %36
%41 = load i32, i32* %2
%42 = load i32, i32* %3
%43 = add nsw i32 %42, 1
%44 = icmp slt i32 %41, %43
br i1 %44, label %45, label %71
45: ; preds = %40
%46 = load i32*, i32** %4
%47 = load i32, i32* %2
%48 = sitofp i32 %47 to double
%49 = fmul double 1.000000e-03, %48
%50 = load i32, i32* %2
%51 = sitofp i32 %50 to double
%52 = fmul double 6.280000e+00, %51
%53 = fdiv double %52, 1.000000e+02
%54 = call double @cos(double %53)
%55 = call double @llvm.fmuladd.f64(double %49, double %54, double 4.110000e+01)
%56 = load i32, i32* %2
%57 = sitofp i32 %56 to double
%58 = fmul double 1.000000e-03, %57
%59 = load i32, i32* %2
%60 = sitofp i32 %59 to double
%61 = fmul double 6.280000e+00, %60
%62 = fdiv double %61, 1.000000e+02
%63 = call double @sin(double %62)
%64 = call double @llvm.fmuladd.f64(double %58, double %63, double -8.770000e+01)
%65 = load i32, i32* %2
%66 = mul nsw i32 %65, 998
%67 = call i32 @fprintf(i32* %46, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %55, double %64, i32 %66)
br label %68
68: ; preds = %45
%69 = load i32, i32* %2
%70 = add nsw i32 %69, 1
store i32 %70, i32* %2
br label %40
71: ; preds = %40
%72 = load i32*, i32** %4
%73 = call i32 @fclose(i32* %72)
%74 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %74, i32** %4
store i32 0, i32* %2
br label %75
75: ; preds = %103, %71
%76 = load i32, i32* %2
%77 = load i32, i32* %3
%78 = add nsw i32 %77, 1
%79 = icmp slt i32 %76, %78
br i1 %79, label %80, label %106
80: ; preds = %75
%81 = load i32*, i32** %4
%82 = load i32, i32* %2
%83 = sitofp i32 %82 to double
%84 = fmul double 5.000000e-04, %83
%85 = load i32, i32* %2
%86 = sitofp i32 %85 to double
%87 = fmul double 6.280000e+00, %86
%88 = fdiv double %87, 1.000000e+02
%89 = call double @cos(double %88)
%90 = call double @llvm.fmuladd.f64(double %84, double %89, double 4.110100e+01)
%91 = load i32, i32* %2
%92 = sitofp i32 %91 to double
%93 = fmul double 1.500000e-03, %92
%94 = load i32, i32* %2
%95 = sitofp i32 %94 to double
%96 = fmul double 6.280000e+00, %95
%97 = fdiv double %96, 1.000000e+02
%98 = call double @sin(double %97)
%99 = call double @llvm.fmuladd.f64(double %93, double %98, double -8.770100e+01)
%100 = load i32, i32* %2
%101 = mul nsw i32 %100, 1200
%102 = call i32 @fprintf(i32* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %90, double %99, i32 %101)
br label %103
103: ; preds = %80
%104 = load i32, i32* %2
%105 = add nsw i32 %104, 1
store i32 %105, i32* %2
br label %75
106: ; preds = %75
%107 = load i32*, i32** %4
%108 = call i32 @fclose(i32* %107)
br label %109
109: ; preds = %106
%110 = load i32, i32* %3
%111 = add nsw i32 %110, 1
store i32 %111, i32* %3
br label %5
112: ; preds = %5
ret i32 1
}

LLVM IR (-O2):
@.str = [16 x i8] c"wb9skytrack.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [12 x i8] c"%lf,%lf,%d\0A\00"
@.str.3 = [16 x i8] c"kc9ligtrack.txt\00"
@.str.4 = [16 x i8] c"kc9lhwtrack.txt\00"
define i32 @main() {
br label %1
1: ; preds = %0, %53
%2 = phi i32 [ 1, %0 ], [ %55, %53 ]
%3 = tail call i32 @sleep(i32 3)
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %1, %5
%6 = phi i32 [ 0, %1 ], [ %16, %5 ]
%7 = sitofp i32 %6 to double
%8 = fmul double %7, 6.280000e+00
%9 = fdiv double %8, 1.000000e+02
%10 = tail call double @cos(double %9)
%11 = tail call double @llvm.fmuladd.f64(double %10, double 5.000000e-02, double 4.110000e+01)
%12 = tail call double @sin(double %9)
%13 = tail call double @llvm.fmuladd.f64(double %12, double 5.000000e-02, double -8.770000e+01)
%14 = mul nuw nsw i32 %6, 1120
%15 = tail call i32 @fprintf(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %11, double %13, i32 %14)
%16 = add nuw nsw i32 %6, 1
%17 = icmp eq i32 %16, %2
br i1 %17, label %18, label %5
18: ; preds = %5
%19 = tail call i32 @fclose(i32* %4)
%20 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %18, %21
%22 = phi i32 [ 0, %18 ], [ %33, %21 ]
%23 = sitofp i32 %22 to double
%24 = fmul double %23, 1.000000e-03
%25 = fmul double %23, 6.280000e+00
%26 = fdiv double %25, 1.000000e+02
%27 = tail call double @cos(double %26)
%28 = tail call double @llvm.fmuladd.f64(double %24, double %27, double 4.110000e+01)
%29 = tail call double @sin(double %26)
%30 = tail call double @llvm.fmuladd.f64(double %24, double %29, double -8.770000e+01)
%31 = mul nuw nsw i32 %22, 998
%32 = tail call i32 @fprintf(i32* %20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %28, double %30, i32 %31)
%33 = add nuw nsw i32 %22, 1
%34 = icmp eq i32 %33, %2
br i1 %34, label %35, label %21
35: ; preds = %21
%36 = tail call i32 @fclose(i32* %20)
%37 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %38
38: ; preds = %35, %38
%39 = phi i32 [ 0, %35 ], [ %51, %38 ]
%40 = sitofp i32 %39 to double
%41 = fmul double %40, 5.000000e-04
%42 = fmul double %40, 6.280000e+00
%43 = fdiv double %42, 1.000000e+02
%44 = tail call double @cos(double %43)
%45 = tail call double @llvm.fmuladd.f64(double %41, double %44, double 4.110100e+01)
%46 = fmul double %40, 1.500000e-03
%47 = tail call double @sin(double %43)
%48 = tail call double @llvm.fmuladd.f64(double %46, double %47, double -8.770100e+01)
%49 = mul nuw nsw i32 %39, 1200
%50 = tail call i32 @fprintf(i32* %37, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), double %45, double %48, i32 %49)
%51 = add nuw nsw i32 %39, 1
%52 = icmp eq i32 %51, %2
br i1 %52, label %53, label %38
53: ; preds = %38
%54 = tail call i32 @fclose(i32* %37)
%55 = add nuw nsw i32 %2, 1
%56 = icmp eq i32 %55, 101
br i1 %56, label %57, label %1
57: ; preds = %53
ret i32 1
}