int main(void) {
  printf("The file is %s\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/zhgxun/cNotes/refs/heads/master/c/normal/"
         "predef.c");
  printf("The date is %s\n", "Mar 17 2022");
  printf("The time is %s\n", "18:43:33");
  printf("The version is %ld\n", 201710L);
  printf("The line is %d\n", 15);
  printf("The function is %s\n", __func__);
  why_me();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    0xed3(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf51(%rip),%rdi
lea    0xf5a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
lea    0xf61(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x313ee,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
mov    $0xf,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
lea    0xf67(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <why_me@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xee1(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
lea    0xf68(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
lea    0xf6f(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
mov    $0x313ee,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
lea    0xf75(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <why_me@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"The file is %s\0A\00"
@.str.1 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/zhgxun/cNotes/refs/heads/master/c/normal/predef.c\00"
@.str.2 = [16 x i8] c"The date is %s\0A\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [16 x i8] c"The time is %s\0A\00"
@.str.5 = [9 x i8] c"18:43:33\00"
@.str.6 = [20 x i8] c"The version is %ld\0A\00"
@.str.7 = [16 x i8] c"The line is %d\0A\00"
@.str.8 = [20 x i8] c"The function is %s\0A\00"
@__func__.main = [5 x i8] c"main\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i64 201710)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 15)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%8 = call i32 (...) @why_me()
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"The file is %s\0A\00"
@.str.1 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/zhgxun/cNotes/refs/heads/master/c/normal/predef.c\00"
@.str.2 = [16 x i8] c"The date is %s\0A\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [16 x i8] c"The time is %s\0A\00"
@.str.5 = [9 x i8] c"18:43:33\00"
@.str.6 = [20 x i8] c"The version is %ld\0A\00"
@.str.7 = [16 x i8] c"The line is %d\0A\00"
@.str.8 = [20 x i8] c"The function is %s\0A\00"
@__func__.main = [5 x i8] c"main\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i64 201710)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 15)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%7 = tail call i32 (...) @why_me()
ret i32 0
}