#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 *, float, float);
int /*<<< orphan*/ scanf(char *, float *);
int main(void) {
  int i, j;
  float x, a;
  scanf("%f", &x);
  scanf("%f", &a);
  for (;;) {
    printf("%f %f\n", x, a);
    x += 0.5;
    if (x > 5)
      break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeca(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe92(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  0xe70(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    119e <main+0x7e>
jmp    11a3 <main+0x83>
jmp    114f <main+0x2f>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xedc(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0x8(%rsp),%xmm0
lea    0xeb8(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0xc(%rsp),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0x8(%rsp),%xmm0
addss  0xe84(%rip),%xmm0
movss  %xmm0,0x8(%rsp)
ucomiss 0xe7b(%rip),%xmm0
jbe    1160 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [7 x i8] c"%f %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %5)
br label %8
8: ; preds = %19, %0
%9 = load float, float* %4
%10 = load float, float* %5
%11 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %9, float %10)
%12 = load float, float* %4
%13 = fpext float %12 to double
%14 = fadd double %13, 5.000000e-01
%15 = fptrunc double %14 to float
store float %15, float* %4
%16 = load float, float* %4
%17 = fcmp ogt float %16, 5.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %8
br label %20
19: ; preds = %8
br label %8
20: ; preds = %18
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [7 x i8] c"%f %f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%7 = load float, float* %1
br label %8
8: ; preds = %8, %0
%9 = phi float [ %13, %8 ], [ %7, %0 ]
%10 = load float, float* %2
%11 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %9, float %10)
%12 = load float, float* %1
%13 = fadd float %12, 5.000000e-01
store float %13, float* %1
%14 = fcmp ogt float %13, 5.000000e+00
br i1 %14, label %15, label %8
15: ; preds = %8
ret i32 0
}