#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) {
  printf("I love em double d x. iYKwIM.\n");
  double dx = 0.1;
  for (int i = 0; i <= 33; i = i + 1) {
    printf("%%f: %f, %%F: %F, %%g: %g, %%G: %G, %%e: %e, %%E: %E\n", i * dx,
           i * dx, i * dx, i * dx, i * dx, i * dx);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xecb(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x21,-0x14(%rbp)
jg     11a3 <main+0x93>
cvtsi2sdl -0x14(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
cvtsi2sdl -0x14(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
cvtsi2sdl -0x14(%rbp),%xmm3
mulsd  -0x10(%rbp),%xmm3
cvtsi2sdl -0x14(%rbp),%xmm4
mulsd  -0x10(%rbp),%xmm4
cvtsi2sdl -0x14(%rbp),%xmm5
mulsd  -0x10(%rbp),%xmm5
lea    0xe99(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1141 <main+0x31>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
xorpd  %xmm0,%xmm0
mov    $0x22,%ebp
lea    0xed1(%rip),%rbx
nop
movsd  %xmm0,(%rsp)
movsd  (%rsp),%xmm0
mulsd  0xeae(%rip),%xmm0
mov    %rbx,%rdi
movapd %xmm0,%xmm1
movapd %xmm0,%xmm2
movapd %xmm0,%xmm3
movapd %xmm0,%xmm4
movapd %xmm0,%xmm5
mov    $0x6,%al
call   1040 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe8b(%rip),%xmm0
add    $0xffffffff,%ebp
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"I love em double d x. iYKwIM.\0A\00"
@.str.1 = [54 x i8] c"%%f: %f, %%F: %F, %%g: %g, %%G: %G, %%e: %e, %%E: %E\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
store double 1.000000e-01, double* %2
store i32 0, i32* %3
br label %5
5: ; preds = %34, %0
%6 = load i32, i32* %3
%7 = icmp sle i32 %6, 33
br i1 %7, label %8, label %37
8: ; preds = %5
%9 = load i32, i32* %3
%10 = sitofp i32 %9 to double
%11 = load double, double* %2
%12 = fmul double %10, %11
%13 = load i32, i32* %3
%14 = sitofp i32 %13 to double
%15 = load double, double* %2
%16 = fmul double %14, %15
%17 = load i32, i32* %3
%18 = sitofp i32 %17 to double
%19 = load double, double* %2
%20 = fmul double %18, %19
%21 = load i32, i32* %3
%22 = sitofp i32 %21 to double
%23 = load double, double* %2
%24 = fmul double %22, %23
%25 = load i32, i32* %3
%26 = sitofp i32 %25 to double
%27 = load double, double* %2
%28 = fmul double %26, %27
%29 = load i32, i32* %3
%30 = sitofp i32 %29 to double
%31 = load double, double* %2
%32 = fmul double %30, %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), double %12, double %16, double %20, double %24, double %28, double %32)
br label %34
34: ; preds = %8
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
store i32 %36, i32* %3
br label %5
37: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [54 x i8] c"%%f: %f, %%F: %F, %%g: %g, %%G: %G, %%e: %e, %%E: %E\0A\00"
@str = [30 x i8] c"I love em double d x. iYKwIM.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
br label %3
2: ; preds = %3
ret i32 0
3: ; preds = %0, %3
%4 = phi i32 [ 0, %0 ], [ %8, %3 ]
%5 = sitofp i32 %4 to double
%6 = fmul double %5, 1.000000e-01
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), double %6, double %6, double %6, double %6, double %6, double %6)
%8 = add nuw nsw i32 %4, 1
%9 = icmp eq i32 %8, 34
br i1 %9, label %2, label %3
}