int main(void) {
  printf("aaa \n");
  printf("test %c, %f \n", '1', 1.0);
  printf("test %c, %5f \n", '2', 23.948984);
  printf("test %c, %i, %7f \n", '3', 528439789, 353332.53523);
  printf("test %37d, %c, %i, %5f \n", 1257, '4', 4, 4.9);
  printf("test %37d, %c, %i, %5f, %7s \n", 342347, '5', 4534, 4535.7,
         "oiejfoijfjeoairjeoi");
  printf("%c%s%f%i%d%f%i%c%s", 'h', "ello", 3.14, 666, 42, 123.456, 789, '0',
         "1234565789");
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x31,%esi
movsd  0xeef(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x32,%esi
movsd  0xecc(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
movsd  0xea4(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
movsd  0xe77(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
movsd  0xe4a(%rip),%xmm0
lea    0xed8(%rip),%r8
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x68,%esi
lea    0xee5(%rip),%rdx
movsd  0xe11(%rip),%xmm0
mov    $0x29a,%ecx
mov    $0x2a,%r8d
movsd  0xe06(%rip),%xmm1
mov    $0x315,%r9d
lea    0xec2(%rip),%rax
movl   $0x30,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x2,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xf04(%rip),%rdi
movsd  0xec4(%rip),%xmm0
mov    $0x31,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xef7(%rip),%rdi
movsd  0xeb1(%rip),%xmm0
mov    $0x32,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
movsd  0xe9e(%rip),%xmm0
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
movsd  0xe86(%rip),%xmm0
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
lea    0xee9(%rip),%r8
movsd  0xe62(%rip),%xmm0
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xef0(%rip),%r10
lea    0xed1(%rip),%rdi
lea    0xedd(%rip),%rdx
movsd  0xe37(%rip),%xmm0
movsd  0xe37(%rip),%xmm1
mov    $0x68,%esi
mov    $0x29a,%ecx
mov    $0x2a,%r8d
mov    $0x315,%r9d
mov    $0x2,%al
push   %r10
push   $0x30
call   1040 <printf@plt>
add    $0x10,%rsp
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"aaa \0A\00"
@.str.1 = [14 x i8] c"test %c, %f \0A\00"
@.str.2 = [15 x i8] c"test %c, %5f \0A\00"
@.str.3 = [19 x i8] c"test %c, %i, %7f \0A\00"
@.str.4 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.5 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.6 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.7 = [19 x i8] c"%c%s%f%i%d%f%i%c%s\00"
@.str.8 = [5 x i8] c"ello\00"
@.str.9 = [11 x i8] c"1234565789\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 49, double 1.000000e+00)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 50, double 0x4037F2F09D8C6D61)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 51, i32 528439789, double 0x411590D224135547)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 1257, i32 52, i32 4, double 4.900000e+00)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double 3.140000e+00, i32 666, i32 42, double 1.234560e+02, i32 789, i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"test %c, %f \0A\00"
@.str.2 = [15 x i8] c"test %c, %5f \0A\00"
@.str.3 = [19 x i8] c"test %c, %i, %7f \0A\00"
@.str.4 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.5 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.6 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.7 = [19 x i8] c"%c%s%f%i%d%f%i%c%s\00"
@.str.8 = [5 x i8] c"ello\00"
@.str.9 = [11 x i8] c"1234565789\00"
@str = [5 x i8] c"aaa \00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 49, double 1.000000e+00)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 50, double 0x4037F2F09D8C6D61)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 51, i32 528439789, double 0x411590D224135547)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 1257, i32 52, i32 4, double 4.900000e+00)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double 3.140000e+00, i32 666, i32 42, double 1.234560e+02, i32 789, i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
ret i32 1
}