#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 const);
int main(int argc, char const *argv[]) {
  const double RENT = 3852.99;
  printf("*%f\n", RENT);
  printf("*%e\n", RENT);
  printf("*%4.2f\n", RENT);
  printf("*%3.1f\n", RENT);
  printf("*%10.3f\n", RENT);
  printf("*%10.3e\n", RENT);
  printf("*%+4.2f\n", RENT);
  printf("*%010.2f\n", RENT);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  0xed2(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xece(%rip),%rdi
movsd  0xebe(%rip),%xmm0
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
movsd  0xeaa(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
movsd  0xe96(%rip),%xmm0
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
movsd  0xe82(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
movsd  0xe6e(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
movsd  0xe5a(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe82(%rip),%rdi
movsd  0xe46(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe77(%rip),%rdi
movsd  0xe32(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
movsd  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
movsd  0xecc(%rip),%xmm0
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
movsd  0xeb8(%rip),%xmm0
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
movsd  0xea4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
movsd  0xe90(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
movsd  0xe7c(%rip),%xmm0
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
movsd  0xe68(%rip),%xmm0
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
movsd  0xe54(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"*%f\0A\00"
@.str.1 = [5 x i8] c"*%e\0A\00"
@.str.2 = [8 x i8] c"*%4.2f\0A\00"
@.str.3 = [8 x i8] c"*%3.1f\0A\00"
@.str.4 = [9 x i8] c"*%10.3f\0A\00"
@.str.5 = [9 x i8] c"*%10.3e\0A\00"
@.str.6 = [9 x i8] c"*%+4.2f\0A\00"
@.str.7 = [10 x i8] c"*%010.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 3.852990e+03, double* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double 3.852990e+03)
%8 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 3.852990e+03)
%9 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double 3.852990e+03)
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double 3.852990e+03)
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double 3.852990e+03)
%12 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double 3.852990e+03)
%13 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), double 3.852990e+03)
%14 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), double 3.852990e+03)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"*%f\0A\00"
@.str.1 = [5 x i8] c"*%e\0A\00"
@.str.2 = [8 x i8] c"*%4.2f\0A\00"
@.str.3 = [8 x i8] c"*%3.1f\0A\00"
@.str.4 = [9 x i8] c"*%10.3f\0A\00"
@.str.5 = [9 x i8] c"*%10.3e\0A\00"
@.str.6 = [9 x i8] c"*%+4.2f\0A\00"
@.str.7 = [10 x i8] c"*%010.2f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), double 3.852990e+03)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 3.852990e+03)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), double 3.852990e+03)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double 3.852990e+03)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double 3.852990e+03)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double 3.852990e+03)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), double 3.852990e+03)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), double 3.852990e+03)
ret i32 0
}