#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 cos(double);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, int);
int sin(double);
scalar_t__ strcmp(char *, char *);
int main() {
  double degrees = 0;
  double x = 0;
  double y = 0;
  char command[10];
  int cases = 0;
  int i;
  FILE *in;
  in = fopen("dogsled.in", "r");
  fscanf(in, "%d", &cases);
  for (i = 1; i <= cases; i++) {
    fscanf(in, "%s", command);
    while (strcmp(command, "Whoa!") != 0) {
      if (strcmp(command, "Haw!") == 0) {
        if (degrees == 350) {
          degrees = 0;
        } else {
          degrees += 10;
        }
      } else if (strcmp(command, "Gee!") == 0) {
        if (degrees == 0) {
          degrees = 350;
        } else {
          degrees -= 10;
        }
      } else {
        x += 50 * cos((double)degrees / 180 * 3.1415926535);
        y += 50 * sin((double)degrees / 180 * 3.1415926535);
      }
      fscanf(in, "%s", command);
    }
    double EPS = 1e-5;
    if (x + EPS >= 485 && x <= 515 + EPS && y + EPS >= -15 && y <= 15 + EPS) {
      printf("Simulation #%d: Made it!\n", i);
    } else {
      printf("Simulation #%d: We're lost, eh?\n", i);
    }
    x = 0;
    y = 0;
    degrees = 0;
  }
  fclose(in);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xea3(%rip),%rdi
lea    0xea7(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xe95(%rip),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
jg     1414 <main+0x2a4>
mov    -0x40(%rbp),%rdi
lea    -0x2a(%rbp),%rdx
lea    0xe6b(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
lea    -0x2a(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     134e <main+0x1de>
lea    -0x2a(%rbp),%rdi
lea    0xe48(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <main+0xf9>
movsd  -0x10(%rbp),%xmm0
movsd  0xe0b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1252 <main+0xe2>
jp     1252 <main+0xe2>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1264 <main+0xf4>
movsd  0xdde(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1333 <main+0x1c3>
lea    -0x2a(%rbp),%rdi
lea    0xdf2(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12c8 <main+0x158>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12ad <main+0x13d>
jp     12ad <main+0x13d>
movsd  0xd9d(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    12c3 <main+0x153>
movsd  -0x10(%rbp),%xmm0
movsd  0xd7e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    132e <main+0x1be>
movsd  -0x10(%rbp),%xmm0
movsd  0xd5b(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xd47(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1080 <cos@plt>
imul   $0x32,%eax,%eax
cvtsi2sd %eax,%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd28(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xd14(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1070 <sin@plt>
imul   $0x32,%eax,%eax
cvtsi2sd %eax,%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1333 <main+0x1c3>
mov    -0x40(%rbp),%rdi
lea    -0x2a(%rbp),%rdx
lea    0xd16(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
jmp    11f4 <main+0x84>
movsd  0xcb2(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  0xc93(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13df <main+0x26f>
movsd  -0x18(%rbp),%xmm1
movsd  0xc8c(%rip),%xmm0
addsd  -0x48(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13df <main+0x26f>
movsd  -0x20(%rbp),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  0xc73(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13df <main+0x26f>
movsd  -0x20(%rbp),%xmm1
movsd  0xc64(%rip),%xmm0
addsd  -0x48(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     13df <main+0x26f>
mov    -0x34(%rbp),%esi
lea    0xc96(%rip),%rdi
call   1040 <printf@plt>
jmp    13ee <main+0x27e>
mov    -0x34(%rbp),%esi
lea    0xc9c(%rip),%rdi
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11d2 <main+0x62>
mov    -0x40(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x0,0xc(%rsp)
lea    0xecb(%rip),%rdi
lea    0xecf(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r12
lea    0xec2(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    13e3 <main+0x273>
mov    $0x1,%r15d
lea    0xe9e(%rip),%r14
lea    0x2e(%rsp),%rbx
lea    0xe95(%rip),%r13
lea    0xe94(%rip),%rbp
jmp    1270 <main+0x100>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x18(%rsp),%xmm2
movapd %xmm2,%xmm0
movsd  0xe2e(%rip),%xmm1
movsd  0x10(%rsp),%xmm3
ucomisd %xmm3,%xmm1
movsd  0xe14(%rip),%xmm1
addsd  %xmm1,%xmm0
addsd  %xmm1,%xmm3
lea    0xe58(%rip),%rdi
lea    0xe6b(%rip),%rax
cmovb  %rax,%rdi
ucomisd 0xe02(%rip),%xmm3
cmovb  %rax,%rdi
ucomisd 0xdfe(%rip),%xmm0
cmovb  %rax,%rdi
movsd  0xdfa(%rip),%xmm0
ucomisd %xmm2,%xmm0
cmovb  %rax,%rdi
mov    %r15d,%esi
call   1040 <printf@plt>
lea    0x1(%r15),%eax
cmp    0xc(%rsp),%r15d
mov    %eax,%r15d
jge    13e3 <main+0x273>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <strcmp@plt>
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
test   %rax,%rax
je     11f0 <main+0x80>
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
jmp    1353 <main+0x1e3>
nopw   0x0(%rax,%rax,1)
movsd  (%rsp),%xmm0
divsd  0xd23(%rip),%xmm0
mulsd  0xd23(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
call   1080 <cos@plt>
imul   $0x32,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x18(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1070 <sin@plt>
imul   $0x32,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     11f0 <main+0x80>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13a0 <main+0x230>
mov    %rbx,%rdi
lea    0xd09(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    12d0 <main+0x160>
movsd  (%rsp),%xmm0
ucomisd 0xcc8(%rip),%xmm0
jne    13d1 <main+0x261>
jp     13d1 <main+0x261>
movsd  0xc7c(%rip),%xmm0
movsd  %xmm0,(%rsp)
jmp    132f <main+0x1bf>
nopl   0x0(%rax,%rax,1)
movsd  (%rsp),%xmm0
ucomisd 0xc63(%rip),%xmm0
jne    13bf <main+0x24f>
jp     13bf <main+0x24f>
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
jmp    132f <main+0x1bf>
addsd  0xc59(%rip),%xmm0
movsd  %xmm0,(%rsp)
jmp    132f <main+0x1bf>
addsd  0xc3f(%rip),%xmm0
movsd  %xmm0,(%rsp)
jmp    132f <main+0x1bf>
mov    %r12,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"dogsled.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [6 x i8] c"Whoa!\00"
@.str.5 = [5 x i8] c"Haw!\00"
@.str.6 = [5 x i8] c"Gee!\00"
@.str.7 = [26 x i8] c"Simulation #%d: Made it!\0A\00"
@.str.8 = [33 x i8] c"Simulation #%d: We're lost, eh?\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca [10 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
store i32 0, i32* %6
%10 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 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** %8
%11 = load i32*, i32** %8
%12 = call i32 (i32*, i8*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
store i32 1, i32* %7
br label %13
13: ; preds = %98, %0
%14 = load i32, i32* %7
%15 = load i32, i32* %6
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %101
17: ; preds = %13
%18 = load i32*, i32** %8
%19 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%20 = call i32 (i32*, i8*, ...) @fscanf(i32* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %19)
br label %21
21: ; preds = %67, %17
%22 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %71
25: ; preds = %21
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %37
29: ; preds = %25
%30 = load double, double* %2
%31 = fcmp oeq double %30, 3.500000e+02
br i1 %31, label %32, label %33
32: ; preds = %29
store double 0.000000e+00, double* %2
br label %36
33: ; preds = %29
%34 = load double, double* %2
%35 = fadd double %34, 1.000000e+01
store double %35, double* %2
br label %36
36: ; preds = %33, %32
br label %67
37: ; preds = %25
%38 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %49
41: ; preds = %37
%42 = load double, double* %2
%43 = fcmp oeq double %42, 0.000000e+00
br i1 %43, label %44, label %45
44: ; preds = %41
store double 3.500000e+02, double* %2
br label %48
45: ; preds = %41
%46 = load double, double* %2
%47 = fsub double %46, 1.000000e+01
store double %47, double* %2
br label %48
48: ; preds = %45, %44
br label %66
49: ; preds = %37
%50 = load double, double* %2
%51 = fdiv double %50, 1.800000e+02
%52 = fmul double %51, 0x400921FB54411744
%53 = call i32 @cos(double %52)
%54 = mul nsw i32 50, %53
%55 = sitofp i32 %54 to double
%56 = load double, double* %3
%57 = fadd double %56, %55
store double %57, double* %3
%58 = load double, double* %2
%59 = fdiv double %58, 1.800000e+02
%60 = fmul double %59, 0x400921FB54411744
%61 = call i32 @sin(double %60)
%62 = mul nsw i32 50, %61
%63 = sitofp i32 %62 to double
%64 = load double, double* %4
%65 = fadd double %64, %63
store double %65, double* %4
br label %66
66: ; preds = %49, %48
br label %67
67: ; preds = %66, %36
%68 = load i32*, i32** %8
%69 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%70 = call i32 (i32*, i8*, ...) @fscanf(i32* %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %69)
br label %21
71: ; preds = %21
store double 1.000000e-05, double* %9
%72 = load double, double* %3
%73 = load double, double* %9
%74 = fadd double %72, %73
%75 = fcmp oge double %74, 4.850000e+02
br i1 %75, label %76, label %94
76: ; preds = %71
%77 = load double, double* %3
%78 = load double, double* %9
%79 = fadd double 5.150000e+02, %78
%80 = fcmp ole double %77, %79
br i1 %80, label %81, label %94
81: ; preds = %76
%82 = load double, double* %4
%83 = load double, double* %9
%84 = fadd double %82, %83
%85 = fcmp oge double %84, -1.500000e+01
br i1 %85, label %86, label %94
86: ; preds = %81
%87 = load double, double* %4
%88 = load double, double* %9
%89 = fadd double 1.500000e+01, %88
%90 = fcmp ole double %87, %89
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = load i32, i32* %7
%93 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 %92)
br label %97
94: ; preds = %86, %81, %76, %71
%95 = load i32, i32* %7
%96 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %95)
br label %97
97: ; preds = %94, %91
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %2
br label %98
98: ; preds = %97
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
br label %13
101: ; preds = %13
%102 = load i32*, i32** %8
%103 = call i32 @fclose(i32* %102)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"dogsled.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [6 x i8] c"Whoa!\00"
@.str.5 = [5 x i8] c"Haw!\00"
@.str.6 = [5 x i8] c"Gee!\00"
@.str.7 = [26 x i8] c"Simulation #%d: Made it!\0A\00"
@.str.8 = [33 x i8] c"Simulation #%d: We're lost, eh?\0A\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i32*, i8*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 1
br i1 %8, label %66, label %9
9: ; preds = %0, %49
%10 = phi i32 [ %63, %49 ], [ 1, %0 ]
%11 = call i32 (i32*, i8*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %3)
%12 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %49, label %14
14: ; preds = %9, %42
%15 = phi double [ %45, %42 ], [ 0.000000e+00, %9 ]
%16 = phi double [ %44, %42 ], [ 0.000000e+00, %9 ]
%17 = phi double [ %43, %42 ], [ 0.000000e+00, %9 ]
%18 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %14
%21 = fcmp oeq double %15, 3.500000e+02
br i1 %21, label %42, label %22
22: ; preds = %20
%23 = fadd double %15, 1.000000e+01
br label %42
24: ; preds = %14
%25 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = fcmp oeq double %15, 0.000000e+00
br i1 %28, label %42, label %29
29: ; preds = %27
%30 = fadd double %15, -1.000000e+01
br label %42
31: ; preds = %24
%32 = fdiv double %15, 1.800000e+02
%33 = fmul double %32, 0x400921FB54411744
%34 = call i32 @cos(double %33)
%35 = mul nsw i32 %34, 50
%36 = sitofp i32 %35 to double
%37 = fadd double %16, %36
%38 = call i32 @sin(double %33)
%39 = mul nsw i32 %38, 50
%40 = sitofp i32 %39 to double
%41 = fadd double %17, %40
br label %42
42: ; preds = %27, %20, %31, %29, %22
%43 = phi double [ %17, %22 ], [ %17, %29 ], [ %41, %31 ], [ %17, %20 ], [ %17, %27 ]
%44 = phi double [ %16, %22 ], [ %16, %29 ], [ %37, %31 ], [ %16, %20 ], [ %16, %27 ]
%45 = phi double [ %23, %22 ], [ %30, %29 ], [ %15, %31 ], [ 0.000000e+00, %20 ], [ 3.500000e+02, %27 ]
%46 = call i32 (i32*, i8*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %3)
%47 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %14
49: ; preds = %42, %9
%50 = phi double [ 0.000000e+00, %9 ], [ %43, %42 ]
%51 = phi double [ 0.000000e+00, %9 ], [ %44, %42 ]
%52 = fadd double %51, 1.000000e-05
%53 = fcmp ult double %52, 4.850000e+02
%54 = fcmp ugt double %51, 0x40801800053E2D62
%55 = or i1 %54, %53
%56 = fadd double %50, 1.000000e-05
%57 = fcmp ult double %56, -1.500000e+01
%58 = select i1 %55, i1 true, i1 %57
%59 = fcmp ugt double %50, 0x402E00014F8B588E
%60 = select i1 %58, i1 true, i1 %59
%61 = select i1 %60, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0)
%62 = call i32 @printf(i8* %61, i32 %10)
%63 = add nuw nsw i32 %10, 1
%64 = load i32, i32* %2
%65 = icmp slt i32 %10, %64
br i1 %65, label %9, label %66
66: ; preds = %49, %0
%67 = call i32 @fclose(i32* %5)
ret i32 0
}