#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, float, ...);
int main() {
  float a, b;
  int i;
  a = 1e+7;
  b = 1e+8;
  printf("a    = %f, b    = %f\n", a, b);
  for (i = 1; i <= 10; i++) {
    a++;
    b++;
    printf("a+%2d = %f, b+%2d = %f\n", i, a, i, b);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xedd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xecc(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
cvttss2si -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xec2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jg     11b6 <main+0xa6>
movss  0xe9e(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe8c(%rip),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x10(%rbp),%esi
movss  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%edx
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe81(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1158 <main+0x48>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf20(%rip),%rdi
movss  0xee0(%rip),%xmm0
mov    $0x989680,%esi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rbx
movss  0xec9(%rip),%xmm0
movsd  0xeed(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xea9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
movsd  0xebc(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe89(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
movsd  0xe98(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe69(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x4,%edx
movsd  0xe74(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe49(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x5,%edx
movsd  0xe50(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe29(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0x6,%edx
movsd  0xe2c(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe09(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x7,%esi
mov    $0x7,%edx
movsd  0xe08(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xde9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
movsd  0xde4(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xdc9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x9,%edx
movsd  0xdc0(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xda9(%rip),%xmm0
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
movsd  0xd9c(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"a = %f, b = %f\0A\00"
@.str.1 = [24 x i8] c"a+%2d = %f, b+%2d = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i32
store i32 0, i32* %1
store float 1.000000e+07, float* %2
store float 1.000000e+08, float* %3
%5 = load float, float* %2
%6 = fptosi float %5 to i32
%7 = load float, float* %3
%8 = call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %6, float %7)
store i32 1, i32* %4
br label %9
9: ; preds = %23, %0
%10 = load i32, i32* %4
%11 = icmp sle i32 %10, 10
br i1 %11, label %12, label %26
12: ; preds = %9
%13 = load float, float* %2
%14 = fadd float %13, 1.000000e+00
store float %14, float* %2
%15 = load float, float* %3
%16 = fadd float %15, 1.000000e+00
store float %16, float* %3
%17 = load i32, i32* %4
%18 = load float, float* %2
%19 = load i32, i32* %4
%20 = load float, float* %3
%21 = fpext float %20 to double
%22 = call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %17, float %18, i32 %19, double %21)
br label %23
23: ; preds = %12
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %9
26: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"a = %f, b = %f\0A\00"
@.str.1 = [24 x i8] c"a+%2d = %f, b+%2d = %f\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 10000000, float 1.000000e+08)
%2 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 1, float 0x416312D020000000, i32 1, double 1.000000e+08)
%3 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 2, float 0x416312D040000000, i32 2, double 1.000000e+08)
%4 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 3, float 0x416312D060000000, i32 3, double 1.000000e+08)
%5 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 4, float 0x416312D080000000, i32 4, double 1.000000e+08)
%6 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 5, float 0x416312D0A0000000, i32 5, double 1.000000e+08)
%7 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 6, float 0x416312D0C0000000, i32 6, double 1.000000e+08)
%8 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 7, float 0x416312D0E0000000, i32 7, double 1.000000e+08)
%9 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 8, float 0x416312D100000000, i32 8, double 1.000000e+08)
%10 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 9, float 0x416312D120000000, i32 9, double 1.000000e+08)
%11 = tail call i32 (i8*, i32, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 10, float 0x416312D140000000, i32 10, double 1.000000e+08)
ret i32 0
}