#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*/ bob(double, double, double);
main() {
  double time, day, month;
  for (time = 0.0; time < 24.01; time += 0.125)
    for (day = 1.0; day < 30.1; day += 5.0)
      for (month = 1.0; month < 12.1; month += 1.0)
        bob(time, day, month);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xed1(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    11dd <main+0xcd>
movsd  0xec6(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec1(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11c1 <main+0xb1>
movsd  0xea6(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeb1(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11a5 <main+0x95>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
call   1030 <bob@plt>
movsd  0xe72(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1167 <main+0x57>
jmp    11aa <main+0x9a>
movsd  0xe76(%rip),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1147 <main+0x37>
jmp    11c6 <main+0xb6>
movsd  0xe4a(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1127 <main+0x17>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
xorpd  %xmm0,%xmm0
movsd  0xee0(%rip),%xmm1
movaps %xmm1,%xmm2
movsd  %xmm0,0x10(%rsp)
nopl   0x0(%rax)
movsd  %xmm2,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movaps %xmm2,%xmm1
movsd  0xeb9(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xea8(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe97(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe86(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe75(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe64(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe53(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe42(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe31(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe20(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xe0f(%rip),%xmm2
call   1030 <bob@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0xdfe(%rip),%xmm2
call   1030 <bob@plt>
movsd  0xdb9(%rip),%xmm2
movsd  0xd91(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%rsp)
movsd  0xdd3(%rip),%xmm2
ucomisd 0x8(%rsp),%xmm2
movsd  0x8(%rsp),%xmm2
ja     1130 <main+0x20>
addsd  0xdc1(%rip),%xmm0
movsd  0xdc1(%rip),%xmm2
ucomisd %xmm0,%xmm2
ja     1120 <main+0x10>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
br label %5
5: ; preds = %29, %0
%6 = load double, double* %2
%7 = fcmp olt double %6, 2.401000e+01
br i1 %7, label %8, label %32
8: ; preds = %5
store double 1.000000e+00, double* %3
br label %9
9: ; preds = %25, %8
%10 = load double, double* %3
%11 = fcmp olt double %10, 3.010000e+01
br i1 %11, label %12, label %28
12: ; preds = %9
store double 1.000000e+00, double* %4
br label %13
13: ; preds = %21, %12
%14 = load double, double* %4
%15 = fcmp olt double %14, 1.210000e+01
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = load double, double* %2
%18 = load double, double* %3
%19 = load double, double* %4
%20 = call i32 @bob(double %17, double %18, double %19)
br label %21
21: ; preds = %16
%22 = load double, double* %4
%23 = fadd double %22, 1.000000e+00
store double %23, double* %4
br label %13
24: ; preds = %13
br label %25
25: ; preds = %24
%26 = load double, double* %3
%27 = fadd double %26, 5.000000e+00
store double %27, double* %3
br label %9
28: ; preds = %9
br label %29
29: ; preds = %28
%30 = load double, double* %2
%31 = fadd double %30, 1.250000e-01
store double %31, double* %2
br label %5
32: ; preds = %5
%33 = load i32, i32* %1
ret i32 %33
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %0, %19
%2 = phi double [ 0.000000e+00, %0 ], [ %20, %19 ]
br label %3
3: ; preds = %1, %3
%4 = phi double [ 1.000000e+00, %1 ], [ %17, %3 ]
%5 = tail call i32 @bob(double %2, double %4, double 1.000000e+00)
%6 = tail call i32 @bob(double %2, double %4, double 2.000000e+00)
%7 = tail call i32 @bob(double %2, double %4, double 3.000000e+00)
%8 = tail call i32 @bob(double %2, double %4, double 4.000000e+00)
%9 = tail call i32 @bob(double %2, double %4, double 5.000000e+00)
%10 = tail call i32 @bob(double %2, double %4, double 6.000000e+00)
%11 = tail call i32 @bob(double %2, double %4, double 7.000000e+00)
%12 = tail call i32 @bob(double %2, double %4, double 8.000000e+00)
%13 = tail call i32 @bob(double %2, double %4, double 9.000000e+00)
%14 = tail call i32 @bob(double %2, double %4, double 1.000000e+01)
%15 = tail call i32 @bob(double %2, double %4, double 1.100000e+01)
%16 = tail call i32 @bob(double %2, double %4, double 1.200000e+01)
%17 = fadd double %4, 5.000000e+00
%18 = fcmp olt double %17, 3.010000e+01
br i1 %18, label %3, label %19
19: ; preds = %3
%20 = fadd double %2, 1.250000e-01
%21 = fcmp olt double %20, 2.401000e+01
br i1 %21, label %1, label %22
22: ; preds = %19
ret i32 0
}