#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 *, double);
int main(void) {
  printf(" (1) %e\n", 1234567.89);
  printf(" (2) %e\n", -1234567.89);
  printf(" (3) %E\n", 1234567.89);
  printf(" (4) %f\n", 1234567.89);
  printf(" (5) %g\n", 1234567.89);
  printf(" (6) %G\n", 1234567.89);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeea(%rip),%rdi
movsd  0xed2(%rip),%xmm0
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
movsd  0xec6(%rip),%xmm0
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
movsd  0xeaa(%rip),%xmm0
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
movsd  0xe96(%rip),%xmm0
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
movsd  0xe82(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
movsd  0xe6e(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
movsd  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
movsd  0xed4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
movsd  0xeb8(%rip),%xmm0
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
movsd  0xea4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
movsd  0xe90(%rip),%xmm0
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
movsd  0xe7c(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c" (1) %e\0A\00"
@.str.1 = [9 x i8] c" (2) %e\0A\00"
@.str.2 = [9 x i8] c" (3) %E\0A\00"
@.str.3 = [9 x i8] c" (4) %f\0A\00"
@.str.4 = [9 x i8] c" (5) %g\0A\00"
@.str.5 = [9 x i8] c" (6) %G\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double 0x4132D687E3D70A3D)
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double 0xC132D687E3D70A3D)
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x4132D687E3D70A3D)
%5 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double 0x4132D687E3D70A3D)
%6 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double 0x4132D687E3D70A3D)
%7 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double 0x4132D687E3D70A3D)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c" (1) %e\0A\00"
@.str.1 = [9 x i8] c" (2) %e\0A\00"
@.str.2 = [9 x i8] c" (3) %E\0A\00"
@.str.3 = [9 x i8] c" (4) %f\0A\00"
@.str.4 = [9 x i8] c" (5) %g\0A\00"
@.str.5 = [9 x i8] c" (6) %G\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double 0x4132D687E3D70A3D)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double 0xC132D687E3D70A3D)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), double 0x4132D687E3D70A3D)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double 0x4132D687E3D70A3D)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double 0x4132D687E3D70A3D)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double 0x4132D687E3D70A3D)
ret i32 0
}