#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*/ printf(char *, ...);
int main(void) {
  float a = 64;
  int x = 0;
  float b = 0;
  for (x = 0; x < 10000000; x++) {
    b = b + 0.000001;
    if ((b * b) > (a - 0.0000001) && (b * b) < (a + 0.0000001)) {
      printf("%f", b);
      printf("\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x989680,-0xc(%rbp)
jge    11ff <main+0xef>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb0(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xe7c(%rip),%xmm2
subsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    11ec <main+0xdc>
movss  -0x10(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe4f(%rip),%xmm2
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    11ec <main+0xdc>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe41(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11f1 <main+0xe1>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1142 <main+0x32>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xorps  %xmm3,%xmm3
mov    $0x989680,%ebp
movsd  0xecd(%rip),%xmm1
movsd  0xecd(%rip),%xmm2
lea    0xed6(%rip),%rbx
jmp    1155 <main+0x35>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffffff,%ebp
je     11bf <main+0x9f>
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm3,%xmm3
cvtsd2ss %xmm0,%xmm3
movaps %xmm3,%xmm0
mulss  %xmm3,%xmm0
cvtss2sd %xmm0,%xmm0
ucomisd %xmm2,%xmm0
jbe    1150 <main+0x30>
movsd  0xe90(%rip),%xmm4
ucomisd %xmm0,%xmm4
jbe    1150 <main+0x30>
xorps  %xmm0,%xmm0
cvtss2sd %xmm3,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
movss  %xmm3,0x4(%rsp)
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x4(%rsp),%xmm3
movsd  0xe53(%rip),%xmm2
movsd  0xe43(%rip),%xmm1
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca float
store i32 0, i32* %1
store float 6.400000e+01, float* %2
store i32 0, i32* %3
store float 0.000000e+00, float* %4
store i32 0, i32* %3
br label %5
5: ; preds = %36, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 10000000
br i1 %7, label %8, label %39
8: ; preds = %5
%9 = load float, float* %4
%10 = fpext float %9 to double
%11 = fadd double %10, 0x3EB0C6F7A0B5ED8D
%12 = fptrunc double %11 to float
store float %12, float* %4
%13 = load float, float* %4
%14 = load float, float* %4
%15 = fmul float %13, %14
%16 = fpext float %15 to double
%17 = load float, float* %2
%18 = fpext float %17 to double
%19 = fsub double %18, 0x3E7AD7F29ABCAF48
%20 = fcmp ogt double %16, %19
br i1 %20, label %21, label %35
21: ; preds = %8
%22 = load float, float* %4
%23 = load float, float* %4
%24 = fmul float %22, %23
%25 = fpext float %24 to double
%26 = load float, float* %2
%27 = fpext float %26 to double
%28 = fadd double %27, 0x3E7AD7F29ABCAF48
%29 = fcmp olt double %25, %28
br i1 %29, label %30, label %35
30: ; preds = %21
%31 = load float, float* %4
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %35
35: ; preds = %30, %21, %8
br label %36
36: ; preds = %35
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %5
39: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
define i32 @main() {
br label %1
1: ; preds = %0, %16
%2 = phi float [ 0.000000e+00, %0 ], [ %6, %16 ]
%3 = phi i32 [ 0, %0 ], [ %17, %16 ]
%4 = fpext float %2 to double
%5 = fadd double %4, 0x3EB0C6F7A0B5ED8D
%6 = fptrunc double %5 to float
%7 = fmul float %6, %6
%8 = fpext float %7 to double
%9 = fcmp ogt double %8, 0x404FFFFFFF29406B
%10 = fcmp olt double %8, 0x40500000006B5FCA
%11 = and i1 %9, %10
br i1 %11, label %12, label %16
12: ; preds = %1
%13 = fpext float %6 to double
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %13)
%15 = tail call i32 @putchar(i32 10)
br label %16
16: ; preds = %1, %12
%17 = add nuw nsw i32 %3, 1
%18 = icmp eq i32 %17, 10000000
br i1 %18, label %19, label %1
19: ; preds = %16
ret i32 0
}