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("%%f");
  printf("test %37d, %c, %i, %5f, %7s \n", 342347, '5', 4534, 4535.7,
         "oiejfoijfjeoairjeoi");
  printf("%c%s%f%i%d%f%i%c%s\n", 'h', "ello", 3.14, 666, 42, 123.456, 789, '0',
         "1234565789");
  printf("%s", give_string());
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x31,%esi
movsd  0xedf(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x32,%esi
movsd  0xebc(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
movsd  0xe94(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
movsd  0xe67(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
movsd  0xe2c(%rip),%xmm0
lea    0xebe(%rip),%r8
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x68,%esi
lea    0xecc(%rip),%rdx
movsd  0xdf3(%rip),%xmm0
mov    $0x29a,%ecx
mov    $0x2a,%r8d
movsd  0xde8(%rip),%xmm1
mov    $0x315,%r9d
lea    0xea9(%rip),%rax
movl   $0x30,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x2,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <give_string@plt>
mov    %eax,%esi
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfa6(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
movsd  0xeb4(%rip),%xmm0
mov    $0x31,%esi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xee7(%rip),%rdi
movsd  0xea1(%rip),%xmm0
mov    $0x32,%esi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xedb(%rip),%rdi
movsd  0xe8e(%rip),%xmm0
mov    $0x33,%esi
mov    $0x1f7f59ed,%edx
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xece(%rip),%rdi
movsd  0xe76(%rip),%xmm0
mov    $0x4e9,%esi
mov    $0x34,%edx
mov    $0x4,%ecx
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb8(%rip),%rdi
lea    0xecf(%rip),%r8
movsd  0xe44(%rip),%xmm0
mov    $0x5394b,%esi
mov    $0x35,%edx
mov    $0x11b6,%ecx
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xed7(%rip),%r10
lea    0xeb7(%rip),%rdi
lea    0xec4(%rip),%rdx
movsd  0xe19(%rip),%xmm0
movsd  0xe19(%rip),%xmm1
mov    $0x68,%esi
mov    $0x29a,%ecx
mov    $0x2a,%r8d
mov    $0x315,%r9d
mov    $0x2,%al
push   %r10
push   $0x30
call   1050 <printf@plt>
add    $0x10,%rsp
xor    %eax,%eax
call   1040 <give_string@plt>
lea    0xe91(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
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 = [4 x i8] c"%%f\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 = [20 x i8] c"%c%s%f%i%d%f%i%c%s\0A\00"
@.str.9 = [5 x i8] c"ello\00"
@.str.10 = [11 x i8] c"1234565789\00"
@.str.11 = [3 x i8] c"%s\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 ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%8 = 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))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 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), 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.10, i64 0, i64 0))
%10 = call i32 (...) @give_string()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %10)
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 = [4 x i8] c"%%f\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 = [20 x i8] c"%c%s%f%i%d%f%i%c%s\0A\00"
@.str.9 = [5 x i8] c"ello\00"
@.str.10 = [11 x i8] c"1234565789\00"
@.str.11 = [3 x i8] c"%s\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 ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%7 = 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))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 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), 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.10, i64 0, i64 0))
%9 = tail call i32 (...) @give_string()
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %9)
ret i32 1
}