#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*/ __VERIFIER_assume(int);
int /*<<< orphan*/ __VERIFIER_error();
float f(float);
float fp(float);
int main() {
  float IN;
  __VERIFIER_assume(IN > -1.2f && IN < 1.2f);
  float x = IN - f(IN) / fp(IN);
  x = x - f(x) / fp(x);
  x = x - f(x) / fp(x);
  if (!(x < 0.1))
    __VERIFIER_error();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
xor    %eax,%eax
movss  0xea2(%rip),%xmm1
ucomiss %xmm1,%xmm0
mov    %al,-0xd(%rbp)
jbe    117c <main+0x3c>
movss  0xe92(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
seta   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <__VERIFIER_assume@plt>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x8(%rbp),%xmm0
call   1040 <f@plt>
movss  %xmm0,-0x28(%rbp)
movss  -0x8(%rbp),%xmm0
call   1030 <fp@plt>
movss  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x24(%rbp),%xmm0
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0xc(%rbp),%xmm0
call   1040 <f@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <fp@plt>
movss  -0x20(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x1c(%rbp),%xmm0
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
call   1040 <f@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <fp@plt>
movss  -0x18(%rbp),%xmm1
movaps %xmm0,%xmm2
movss  -0x14(%rbp),%xmm0
divss  %xmm2,%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdb7(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     1262 <main+0x122>
mov    $0x0,%al
call   1050 <__VERIFIER_error@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1060 <__VERIFIER_assume@plt>
call   1040 <f@plt>
call   1030 <fp@plt>
movss  0xea6(%rip),%xmm0
call   1040 <f@plt>
movss  0xe99(%rip),%xmm0
call   1030 <fp@plt>
movss  0xe8c(%rip),%xmm0
call   1040 <f@plt>
movss  0xe7f(%rip),%xmm0
call   1030 <fp@plt>
xor    %eax,%eax
call   1050 <__VERIFIER_error@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = load float, float* %2
%5 = fcmp ogt float %4, 0xBFF3333340000000
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load float, float* %2
%8 = fcmp olt float %7, 0x3FF3333340000000
br label %9
9: ; preds = %6, %0
%10 = phi i1 [ false, %0 ], [ %8, %6 ]
%11 = zext i1 %10 to i32
%12 = call i32 @__VERIFIER_assume(i32 %11)
%13 = load float, float* %2
%14 = load float, float* %2
%15 = call float @f(float %14)
%16 = load float, float* %2
%17 = call float @fp(float %16)
%18 = fdiv float %15, %17
%19 = fsub float %13, %18
store float %19, float* %3
%20 = load float, float* %3
%21 = load float, float* %3
%22 = call float @f(float %21)
%23 = load float, float* %3
%24 = call float @fp(float %23)
%25 = fdiv float %22, %24
%26 = fsub float %20, %25
store float %26, float* %3
%27 = load float, float* %3
%28 = load float, float* %3
%29 = call float @f(float %28)
%30 = load float, float* %3
%31 = call float @fp(float %30)
%32 = fdiv float %29, %31
%33 = fsub float %27, %32
store float %33, float* %3
%34 = load float, float* %3
%35 = fpext float %34 to double
%36 = fcmp olt double %35, 1.000000e-01
br i1 %36, label %39, label %37
37: ; preds = %9
%38 = call i32 (...) @__VERIFIER_error()
br label %39
39: ; preds = %37, %9
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__VERIFIER_assume(i32 0)
%2 = tail call float @f(float undef)
%3 = tail call float @fp(float undef)
%4 = tail call float @f(float 0x7FF8000000000000)
%5 = tail call float @fp(float 0x7FF8000000000000)
%6 = tail call float @f(float 0x7FF8000000000000)
%7 = tail call float @fp(float 0x7FF8000000000000)
%8 = tail call i32 (...) @__VERIFIER_error()
ret i32 0
}