int main(void) {
  printf("aaa \n");
  printf("test %c, %f \n", '1', 10);
  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", 314, 666, 42.0, 123.456, "789", '0',
         "1234565789");
  printf("aaa \n", "bb");
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x31,%esi
mov    $0xa,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x2,%esi
movsd  0xecf(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x33,%esi
lea    0xef3(%rip),%rdx
movsd  0xea5(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
movsd  0xe78(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
movsd  0xe4b(%rip),%xmm0
lea    0xedb(%rip),%r8
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x68,%esi
lea    0xee8(%rip),%rdx
mov    $0x13a,%ecx
mov    $0x29a,%r8d
movsd  0xe07(%rip),%xmm0
movsd  0xe07(%rip),%xmm1
lea    0xed2(%rip),%r9
lea    0xec4(%rip),%rax
movl   $0x30,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xe07(%rip),%rdi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xfad(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
mov    $0x31,%esi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeec(%rip),%rdi
movsd  0xea6(%rip),%xmm0
mov    $0x2,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
lea    0xeec(%rip),%rdx
movsd  0xe8c(%rip),%xmm0
mov    $0x33,%esi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
movsd  0xe79(%rip),%xmm0
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
lea    0xee6(%rip),%r8
movsd  0xe55(%rip),%xmm0
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeed(%rip),%rbx
lea    0xece(%rip),%rdi
lea    0xeda(%rip),%rdx
lea    0xedf(%rip),%r9
movsd  0xe23(%rip),%xmm0
movsd  0xe23(%rip),%xmm1
mov    $0x68,%esi
mov    $0x13a,%ecx
mov    $0x29a,%r8d
mov    $0x2,%al
push   %rbx
push   $0x30
call   1040 <printf@plt>
add    $0x10,%rsp
mov    %r14,%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
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 = [10 x i8] c"528439789\00"
@.str.5 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.6 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.7 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.8 = [19 x i8] c"%c%s%f%i%d%f%i%c%s\00"
@.str.9 = [5 x i8] c"ello\00"
@.str.10 = [4 x i8] c"789\00"
@.str.11 = [11 x i8] c"1234565789\00"
@.str.12 = [3 x i8] c"bb\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, i32 10)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 2, double 0x4037F2F09D8C6D61)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 51, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), double 0x411590D224135547)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, 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.6, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 314, i32 666, double 4.200000e+01, double 1.234560e+02, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, 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 = [10 x i8] c"528439789\00"
@.str.5 = [25 x i8] c"test %37d, %c, %i, %5f \0A\00"
@.str.6 = [30 x i8] c"test %37d, %c, %i, %5f, %7s \0A\00"
@.str.7 = [20 x i8] c"oiejfoijfjeoairjeoi\00"
@.str.8 = [19 x i8] c"%c%s%f%i%d%f%i%c%s\00"
@.str.9 = [5 x i8] c"ello\00"
@.str.10 = [4 x i8] c"789\00"
@.str.11 = [11 x i8] c"1234565789\00"
@str.13 = [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.13, 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, i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 2, 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, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), double 0x411590D224135547)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, 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.6, i64 0, i64 0), i32 342347, i32 53, i32 4534, double 4.535700e+03, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 314, i32 666, double 4.200000e+01, double 1.234560e+02, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.13, i64 0, i64 0))
ret i32 1
}