#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*/ abort();
int /*<<< orphan*/ do_sibcall();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main(void) {
  double x;
  for (x = 0; x < 20; x++)
    do_sibcall();
  if (!(x >= 10))
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xeb1(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1178 <main+0x48>
mov    $0x0,%al
call   1040 <do_sibcall@plt>
movsd  0xea7(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1147 <main+0x17>
movsd  -0x10(%rbp),%xmm0
movsd  0xe83(%rip),%xmm1
ucomisd %xmm1,%xmm0
jae    1196 <main+0x66>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %eax,%eax
call   1030 <do_sibcall@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
br label %3
3: ; preds = %8, %0
%4 = load double, double* %2
%5 = fcmp olt double %4, 2.000000e+01
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 (...) @do_sibcall()
br label %8
8: ; preds = %6
%9 = load double, double* %2
%10 = fadd double %9, 1.000000e+00
store double %10, double* %2
br label %3
11: ; preds = %3
%12 = load double, double* %2
%13 = fcmp oge double %12, 1.000000e+01
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = call i32 (...) @abort()
unreachable
16: ; preds = %11
%17 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @do_sibcall()
%2 = tail call i32 (...) @do_sibcall()
%3 = tail call i32 (...) @do_sibcall()
%4 = tail call i32 (...) @do_sibcall()
%5 = tail call i32 (...) @do_sibcall()
%6 = tail call i32 (...) @do_sibcall()
%7 = tail call i32 (...) @do_sibcall()
%8 = tail call i32 (...) @do_sibcall()
%9 = tail call i32 (...) @do_sibcall()
%10 = tail call i32 (...) @do_sibcall()
%11 = tail call i32 (...) @do_sibcall()
%12 = tail call i32 (...) @do_sibcall()
%13 = tail call i32 (...) @do_sibcall()
%14 = tail call i32 (...) @do_sibcall()
%15 = tail call i32 (...) @do_sibcall()
%16 = tail call i32 (...) @do_sibcall()
%17 = tail call i32 (...) @do_sibcall()
%18 = tail call i32 (...) @do_sibcall()
%19 = tail call i32 (...) @do_sibcall()
%20 = tail call i32 (...) @do_sibcall()
%21 = tail call i32 @exit(i32 0)
unreachable
}