#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*/ FPRINT(float);
int IBETWEEN(int, int);
int main(void) {
  float x0, x1, x2;
  int i;
  int n;
  n = IBETWEEN(100, 100);
  x0 = 11 / 2.0;
  x1 = 61 / 11.0;
  for (i = 1; i <= n; i++) {
    x2 = 111 - (1130 - 3000 / x0) / x1;
    x0 = x1;
    x1 = x2;
    FPRINT(x1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x64,%esi
mov    %esi,%edi
call   1040 <IBETWEEN@plt>
mov    %eax,-0x18(%rbp)
movss  0xebe(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xead(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11c6 <main+0xa6>
movss  0xe9d(%rip),%xmm0
divss  -0x8(%rbp),%xmm0
movss  0xe8c(%rip),%xmm1
subss  %xmm0,%xmm1
divss  -0xc(%rbp),%xmm1
movss  0xe77(%rip),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <FPRINT@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115f <main+0x3f>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    $0x64,%edi
mov    $0x64,%esi
call   1040 <IBETWEEN@plt>
test   %eax,%eax
jle    1196 <main+0x76>
mov    %eax,%ebx
movss  0xebe(%rip),%xmm2
movss  0xeba(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movss  %xmm2,0x8(%rsp)
movss  0xeaa(%rip),%xmm1
divss  %xmm0,%xmm1
addss  0xea2(%rip),%xmm1
divss  %xmm2,%xmm1
movss  0xe9a(%rip),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
call   1030 <FPRINT@plt>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm2
add    $0xffffffff,%ebx
jne    1150 <main+0x30>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 @IBETWEEN(i32 100, i32 100)
store i32 %7, i32* %6
store float 5.500000e+00, float* %2
store float 0x40162E8BA0000000, float* %3
store i32 1, i32* %5
br label %8
8: ; preds = %23, %0
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load float, float* %2
%14 = fdiv float 3.000000e+03, %13
%15 = fsub float 1.130000e+03, %14
%16 = load float, float* %3
%17 = fdiv float %15, %16
%18 = fsub float 1.110000e+02, %17
store float %18, float* %4
%19 = load float, float* %3
store float %19, float* %2
%20 = load float, float* %4
store float %20, float* %3
%21 = load float, float* %3
%22 = call i32 @FPRINT(float %21)
br label %23
23: ; preds = %12
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
br label %8
26: ; preds = %8
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @IBETWEEN(i32 100, i32 100)
%2 = icmp slt i32 %1, 1
br i1 %2, label %14, label %3
3: ; preds = %0, %3
%4 = phi float [ %6, %3 ], [ 5.500000e+00, %0 ]
%5 = phi i32 [ %12, %3 ], [ 1, %0 ]
%6 = phi float [ %10, %3 ], [ 0x40162E8BA0000000, %0 ]
%7 = fdiv float 3.000000e+03, %4
%8 = fsub float 1.130000e+03, %7
%9 = fdiv float %8, %6
%10 = fsub float 1.110000e+02, %9
%11 = tail call i32 @FPRINT(float %10)
%12 = add nuw i32 %5, 1
%13 = icmp eq i32 %5, %1
br i1 %13, label %14, label %3
14: ; preds = %3, %0
ret i32 0
}