#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, double, ...);
double phase_to_timedelay(double phase, double freq, double timedelay,
                          double offset, double ratio, int *cycles,
                          double *delta) {
  double time_phase = 0;
  double initial_time = 0;
  double difference = 0;
  double max_time = 600.0;
  int count = 0;
  while (phase <= -360.0) {
    phase += 360.0;
  }
  while (phase > 0.0) {
    phase -= 360.0;
  }
  if ((phase > 0) || (phase <= -360)) {
    printf("Phase Error: %lf %lf\n", freq, phase);
    exit(0);
  }
  time_phase = -phase / 360.0 / freq * 1E9;
  initial_time = time_phase;
  difference = timedelay + offset - time_phase;
  printf("%d %lf %lf %lf %lf %lf\n", count, time_phase, timedelay, difference,
         (difference / timedelay), ratio);
  if (timedelay != 0) {
    while (((difference / timedelay) > ratio) && (time_phase < max_time)) {
      time_phase += 1 / (freq * 1E-9);
      difference = timedelay + offset - time_phase;
      count++;
      printf("%d %lf %lf %lf %lf %lf\n", count, time_phase, timedelay,
             difference, (difference / timedelay), ratio);
    }
  }
  if (((difference / timedelay) < 0) && (count > 0)) {
    time_phase -= 1 / (freq * 1E-9);
    difference = timedelay + offset - time_phase;
    count--;
  }
  printf("%d %lf %lf %lf %lf %lf\n", count, time_phase, timedelay, difference,
         (difference / timedelay), ratio);
  *cycles = count;
  *delta = 1 / (freq * 1E-9);
  return time_phase;
}


x86 assembly (clang, -O0):
<phase_to_timedelay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe97(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movsd  0xe8b(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     119f <phase_to_timedelay+0x7f>
movsd  0xe88(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1175 <phase_to_timedelay+0x55>
jmp    11a4 <phase_to_timedelay+0x84>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    11d1 <phase_to_timedelay+0xb1>
movsd  -0x8(%rbp),%xmm0
movsd  0xe55(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11a4 <phase_to_timedelay+0x84>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     11f6 <phase_to_timedelay+0xd6>
movsd  0xe1d(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     1215 <phase_to_timedelay+0xf5>
cvttsd2si -0x10(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
lea    0xe29(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xddf(%rip),%xmm1
divsd  %xmm1,%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  0xdc6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x5c(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
divsd  -0x18(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
lea    0xdad(%rip),%rdi
mov    $0x5,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12bd <phase_to_timedelay+0x19d>
jp     12bd <phase_to_timedelay+0x19d>
jmp    1379 <phase_to_timedelay+0x259>
jmp    12c2 <phase_to_timedelay+0x1a2>
movsd  -0x50(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0x5d(%rbp)
jbe    12f0 <phase_to_timedelay+0x1d0>
movsd  -0x40(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x5d(%rbp)
mov    -0x5d(%rbp),%al
test   $0x1,%al
jne    1300 <phase_to_timedelay+0x1e0>
jmp    1374 <phase_to_timedelay+0x254>
movsd  0xd20(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xd0b(%rip),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
divsd  -0x18(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
lea    0xcde(%rip),%rdi
mov    $0x5,%al
call   1030 <printf@plt>
jmp    12c2 <phase_to_timedelay+0x1a2>
jmp    1379 <phase_to_timedelay+0x259>
movsd  -0x50(%rbp),%xmm1
divsd  -0x18(%rbp),%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    13de <phase_to_timedelay+0x2be>
cmpl   $0x0,-0x5c(%rbp)
jle    13de <phase_to_timedelay+0x2be>
movsd  0xc86(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xc71(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%esi
movsd  -0x40(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
divsd  -0x18(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
lea    0xc40(%rip),%rdi
mov    $0x5,%al
call   1030 <printf@plt>
mov    -0x5c(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movsd  0xc0a(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xbf5(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phase_to_timedelay>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
movsd  %xmm2,0x8(%rsp)
movsd  0xec1(%rip),%xmm2
ucomisd %xmm0,%xmm2
jb     115a <phase_to_timedelay+0x3a>
movsd  0xebb(%rip),%xmm5
nopl   (%rax)
addsd  %xmm5,%xmm0
ucomisd %xmm0,%xmm2
jae    1150 <phase_to_timedelay+0x30>
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm0
jbe    117a <phase_to_timedelay+0x5a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
addsd  %xmm2,%xmm0
ucomisd %xmm5,%xmm0
ja     1170 <phase_to_timedelay+0x50>
ucomisd %xmm0,%xmm2
jae    136c <phase_to_timedelay+0x24c>
divsd  0xe74(%rip),%xmm0
movsd  %xmm1,0x28(%rsp)
divsd  %xmm1,%xmm0
mulsd  0xe72(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm3
movsd  %xmm3,0x30(%rsp)
movapd %xmm3,%xmm2
subsd  %xmm0,%xmm2
movapd %xmm2,%xmm3
divsd  %xmm1,%xmm3
lea    0xe84(%rip),%rdi
xor    %ebx,%ebx
xor    %esi,%esi
movsd  %xmm2,0x20(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm4,0x18(%rsp)
mov    $0x5,%al
call   1030 <printf@plt>
xorpd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jne    11fd <phase_to_timedelay+0xdd>
jnp    1302 <phase_to_timedelay+0x1e2>
movsd  0xe13(%rip),%xmm0
movsd  (%rsp),%xmm1
ucomisd %xmm1,%xmm0
movapd %xmm1,%xmm0
jbe    1307 <phase_to_timedelay+0x1e7>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
ucomisd %xmm4,%xmm3
jbe    1318 <phase_to_timedelay+0x1f8>
movsd  0xdea(%rip),%xmm1
mulsd  0x28(%rsp),%xmm1
movsd  0xde4(%rip),%xmm2
movsd  %xmm1,0x38(%rsp)
divsd  %xmm1,%xmm2
movsd  %xmm2,0x40(%rsp)
mov    $0xffffffff,%ebx
lea    0xdee(%rip),%r12
addsd  0x40(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x30(%rsp),%xmm2
subsd  %xmm0,%xmm2
lea    0x2(%rbx),%esi
movapd %xmm2,%xmm3
movsd  0x8(%rsp),%xmm1
divsd  %xmm1,%xmm3
movsd  %xmm3,0x10(%rsp)
mov    %r12,%rdi
movsd  %xmm2,0x20(%rsp)
movsd  0x18(%rsp),%xmm4
mov    $0x5,%al
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm3
movsd  0x18(%rsp),%xmm4
movsd  (%rsp),%xmm0
add    $0x1,%ebx
movsd  0xd5a(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    12ca <phase_to_timedelay+0x1aa>
ucomisd %xmm4,%xmm3
ja     1260 <phase_to_timedelay+0x140>
xorpd  %xmm1,%xmm1
ucomisd %xmm3,%xmm1
jbe    1315 <phase_to_timedelay+0x1f5>
movsd  0xd54(%rip),%xmm1
divsd  0x38(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm3
divsd  0x8(%rsp),%xmm3
movsd  %xmm1,0x20(%rsp)
jmp    1318 <phase_to_timedelay+0x1f8>
movsd  (%rsp),%xmm0
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
jmp    1318 <phase_to_timedelay+0x1f8>
add    $0x1,%ebx
movsd  %xmm0,(%rsp)
lea    0xd2a(%rip),%rdi
mov    %ebx,%esi
movsd  0x8(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
mov    $0x5,%al
call   1030 <printf@plt>
movsd  0x28(%rsp),%xmm1
mulsd  0xcd9(%rip),%xmm1
mov    %ebx,(%r15)
movsd  0xcd6(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%r14)
movsd  (%rsp),%xmm0
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
cvttsd2si %xmm1,%esi
lea    0xcc1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Phase Error: %lf %lf\0A\00"
@.str.1 = [24 x i8] c"%d %lf %lf %lf %lf %lf\0A\00"
define double @phase_to_timedelay(double %0, double %1, double %2, double %3, double %4, i32* %5, double* %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca i32*
%14 = alloca double*
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store i32* %5, i32** %13
store double* %6, double** %14
store double 0.000000e+00, double* %15
store double 0.000000e+00, double* %16
store double 0.000000e+00, double* %17
store double 6.000000e+02, double* %18
store i32 0, i32* %19
br label %20
20: ; preds = %23, %7
%21 = load double, double* %8
%22 = fcmp ole double %21, -3.600000e+02
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load double, double* %8
%25 = fadd double %24, 3.600000e+02
store double %25, double* %8
br label %20
26: ; preds = %20
br label %27
27: ; preds = %30, %26
%28 = load double, double* %8
%29 = fcmp ogt double %28, 0.000000e+00
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load double, double* %8
%32 = fsub double %31, 3.600000e+02
store double %32, double* %8
br label %27
33: ; preds = %27
%34 = load double, double* %8
%35 = fcmp ogt double %34, 0.000000e+00
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load double, double* %8
%38 = fcmp ole double %37, -3.600000e+02
br i1 %38, label %39, label %45
39: ; preds = %36, %33
%40 = load double, double* %9
%41 = fptosi double %40 to i32
%42 = load double, double* %8
%43 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %41, double %42)
%44 = call i32 @exit(i32 0)
unreachable
45: ; preds = %36
%46 = load double, double* %8
%47 = fneg double %46
%48 = fdiv double %47, 3.600000e+02
%49 = load double, double* %9
%50 = fdiv double %48, %49
%51 = fmul double %50, 1.000000e+09
store double %51, double* %15
%52 = load double, double* %15
store double %52, double* %16
%53 = load double, double* %10
%54 = load double, double* %11
%55 = fadd double %53, %54
%56 = load double, double* %15
%57 = fsub double %55, %56
store double %57, double* %17
%58 = load i32, i32* %19
%59 = load double, double* %15
%60 = load double, double* %10
%61 = load double, double* %17
%62 = load double, double* %17
%63 = load double, double* %10
%64 = fdiv double %62, %63
%65 = load double, double* %12
%66 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %58, double %59, double %60, double %61, double %64, double %65)
%67 = load double, double* %10
%68 = fcmp une double %67, 0.000000e+00
br i1 %68, label %69, label %105
69: ; preds = %45
br label %70
70: ; preds = %82, %69
%71 = load double, double* %17
%72 = load double, double* %10
%73 = fdiv double %71, %72
%74 = load double, double* %12
%75 = fcmp ogt double %73, %74
br i1 %75, label %76, label %80
76: ; preds = %70
%77 = load double, double* %15
%78 = load double, double* %18
%79 = fcmp olt double %77, %78
br label %80
80: ; preds = %76, %70
%81 = phi i1 [ false, %70 ], [ %79, %76 ]
br i1 %81, label %82, label %104
82: ; preds = %80
%83 = load double, double* %9
%84 = fmul double %83, 1.000000e-09
%85 = fdiv double 1.000000e+00, %84
%86 = load double, double* %15
%87 = fadd double %86, %85
store double %87, double* %15
%88 = load double, double* %10
%89 = load double, double* %11
%90 = fadd double %88, %89
%91 = load double, double* %15
%92 = fsub double %90, %91
store double %92, double* %17
%93 = load i32, i32* %19
%94 = add nsw i32 %93, 1
store i32 %94, i32* %19
%95 = load i32, i32* %19
%96 = load double, double* %15
%97 = load double, double* %10
%98 = load double, double* %17
%99 = load double, double* %17
%100 = load double, double* %10
%101 = fdiv double %99, %100
%102 = load double, double* %12
%103 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %95, double %96, double %97, double %98, double %101, double %102)
br label %70
104: ; preds = %80
br label %105
105: ; preds = %104, %45
%106 = load double, double* %17
%107 = load double, double* %10
%108 = fdiv double %106, %107
%109 = fcmp olt double %108, 0.000000e+00
br i1 %109, label %110, label %126
110: ; preds = %105
%111 = load i32, i32* %19
%112 = icmp sgt i32 %111, 0
br i1 %112, label %113, label %126
113: ; preds = %110
%114 = load double, double* %9
%115 = fmul double %114, 1.000000e-09
%116 = fdiv double 1.000000e+00, %115
%117 = load double, double* %15
%118 = fsub double %117, %116
store double %118, double* %15
%119 = load double, double* %10
%120 = load double, double* %11
%121 = fadd double %119, %120
%122 = load double, double* %15
%123 = fsub double %121, %122
store double %123, double* %17
%124 = load i32, i32* %19
%125 = add nsw i32 %124, -1
store i32 %125, i32* %19
br label %126
126: ; preds = %113, %110, %105
%127 = load i32, i32* %19
%128 = load double, double* %15
%129 = load double, double* %10
%130 = load double, double* %17
%131 = load double, double* %17
%132 = load double, double* %10
%133 = fdiv double %131, %132
%134 = load double, double* %12
%135 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %127, double %128, double %129, double %130, double %133, double %134)
%136 = load i32, i32* %19
%137 = load i32*, i32** %13
store i32 %136, i32* %137
%138 = load double, double* %9
%139 = fmul double %138, 1.000000e-09
%140 = fdiv double 1.000000e+00, %139
%141 = load double*, double** %14
store double %140, double* %141
%142 = load double, double* %15
ret double %142
}

LLVM IR (-O2):
@.str = [22 x i8] c"Phase Error: %lf %lf\0A\00"
@.str.1 = [24 x i8] c"%d %lf %lf %lf %lf %lf\0A\00"
define double @phase_to_timedelay(double %0, double %1, double %2, double %3, double %4, i32* nocapture writeonly %5, double* nocapture writeonly %6) {
%8 = fcmp ugt double %0, -3.600000e+02
br i1 %8, label %9, label %12
9: ; preds = %12, %7
%10 = phi double [ %0, %7 ], [ %14, %12 ]
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %16, label %20
12: ; preds = %7, %12
%13 = phi double [ %14, %12 ], [ %0, %7 ]
%14 = fadd double %13, 3.600000e+02
%15 = fcmp ugt double %14, -3.600000e+02
br i1 %15, label %9, label %12
16: ; preds = %9, %16
%17 = phi double [ %18, %16 ], [ %10, %9 ]
%18 = fadd double %17, -3.600000e+02
%19 = fcmp ogt double %18, 0.000000e+00
br i1 %19, label %16, label %20
20: ; preds = %16, %9
%21 = phi double [ %10, %9 ], [ %18, %16 ]
%22 = fcmp ugt double %21, -3.600000e+02
br i1 %22, label %27, label %23
23: ; preds = %20
%24 = fptosi double %1 to i32
%25 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %24, double %21)
%26 = tail call i32 @exit(i32 0)
unreachable
27: ; preds = %20
%28 = fdiv double %21, -3.600000e+02
%29 = fdiv double %28, %1
%30 = fmul double %29, 1.000000e+09
%31 = fadd double %2, %3
%32 = fsub double %31, %30
%33 = fdiv double %32, %2
%34 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 0, double %30, double %2, double %32, double %33, double %4)
%35 = fcmp une double %2, 0.000000e+00
br i1 %35, label %36, label %62
36: ; preds = %27
%37 = fcmp ogt double %33, %4
%38 = fcmp olt double %30, 6.000000e+02
%39 = and i1 %38, %37
br i1 %39, label %40, label %62
40: ; preds = %36
%41 = fmul double %1, 1.000000e-09
%42 = fdiv double 1.000000e+00, %41
br label %43
43: ; preds = %40, %43
%44 = phi i32 [ 0, %40 ], [ %48, %43 ]
%45 = phi double [ %30, %40 ], [ %46, %43 ]
%46 = fadd double %42, %45
%47 = fsub double %31, %46
%48 = add nuw nsw i32 %44, 1
%49 = fdiv double %47, %2
%50 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %48, double %46, double %2, double %47, double %49, double %4)
%51 = fcmp ogt double %49, %4
%52 = fcmp olt double %46, 6.000000e+02
%53 = and i1 %52, %51
br i1 %53, label %43, label %54
54: ; preds = %43
%55 = fcmp olt double %49, 0.000000e+00
br i1 %55, label %56, label %62
56: ; preds = %54
%57 = fmul double %1, 1.000000e-09
%58 = fdiv double 1.000000e+00, %57
%59 = fsub double %46, %58
%60 = fsub double %31, %59
%61 = fdiv double %60, %2
br label %62
62: ; preds = %36, %27, %56, %54
%63 = phi double [ %33, %27 ], [ %61, %56 ], [ %49, %54 ], [ %33, %36 ]
%64 = phi double [ %30, %27 ], [ %59, %56 ], [ %46, %54 ], [ %30, %36 ]
%65 = phi double [ %32, %27 ], [ %60, %56 ], [ %47, %54 ], [ %32, %36 ]
%66 = phi i32 [ 0, %27 ], [ %44, %56 ], [ %48, %54 ], [ 0, %36 ]
%67 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %66, double %64, double %2, double %65, double %63, double %4)
store i32 %66, i32* %5
%68 = fmul double %1, 1.000000e-09
%69 = fdiv double 1.000000e+00, %68
store double %69, double* %6
ret double %64
}