#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 *, ...);
int main() {
  printf("File :%s\n", "/scratch/repos/new/home/jordi_armengol_estape/"
                       "c-scraper/outputs/2022-01-22/02-19-57/repos/dubuyuye/"
                       "learning-c/refs/heads/master/basic/preprocessor.c");
  printf("Date :%s\n", "Mar 18 2022");
  printf("Time :%s\n", "05:01:38");
  printf("Line :%d\n", 27);
  printf("ANSI :%d\n", 1);
  printf("MESSAGE :%s\n", "You wish!");
  printf("msgA"
         " and "
         "msgB"
         "\n");
  int token34 = 40;
  printf("token "
         "34"
         " = %d\n",
         token34);
  ;
  printf("Max between 20 and 10 is %d\n", ((10) > (20) ? (10) : (20)));
  const int LENGTH = 10;
  printf("%d\n", LENGTH);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
lea    0xf6e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
lea    0xf6f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
mov    $0x1b,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
lea    0xf5e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x28,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xf51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x8(%rbp)
lea    0xf34(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xedb(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf62(%rip),%rdi
lea    0xf65(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf63(%rip),%rdi
lea    0xf66(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf61(%rip),%rdi
mov    $0x1b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf4f(%rip),%rdi
lea    0xf55(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2a(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"File :%s\0A\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dubuyuye/learning-c/refs/heads/master/basic/preprocessor.c\00"
@.str.2 = [10 x i8] c"Date :%s\0A\00"
@.str.3 = [12 x i8] c"Mar 18 2022\00"
@.str.4 = [10 x i8] c"Time :%s\0A\00"
@.str.5 = [9 x i8] c"05:01:38\00"
@.str.6 = [10 x i8] c"Line :%d\0A\00"
@.str.7 = [10 x i8] c"ANSI :%d\0A\00"
@.str.8 = [13 x i8] c"MESSAGE :%s\0A\00"
@.str.9 = [10 x i8] c"You wish!\00"
@.str.10 = [15 x i8] c"msgA and msgB\0A\00"
@.str.11 = [15 x i8] c"token 34 = %d\0A\00"
@.str.12 = [29 x i8] c"Max between 20 and 10 is %d\0A\00"
@.str.13 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 27)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 1)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
store i32 40, i32* %1
%10 = load i32, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 20)
store i32 10, i32* %2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 10)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"File :%s\0A\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dubuyuye/learning-c/refs/heads/master/basic/preprocessor.c\00"
@.str.2 = [10 x i8] c"Date :%s\0A\00"
@.str.3 = [12 x i8] c"Mar 18 2022\00"
@.str.4 = [10 x i8] c"Time :%s\0A\00"
@.str.5 = [9 x i8] c"05:01:38\00"
@.str.6 = [10 x i8] c"Line :%d\0A\00"
@.str.7 = [10 x i8] c"ANSI :%d\0A\00"
@.str.8 = [13 x i8] c"MESSAGE :%s\0A\00"
@.str.9 = [10 x i8] c"You wish!\00"
@.str.11 = [15 x i8] c"token 34 = %d\0A\00"
@.str.12 = [29 x i8] c"Max between 20 and 10 is %d\0A\00"
@.str.13 = [4 x i8] c"%d\0A\00"
@str = [14 x i8] c"msgA and msgB\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 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 ([10 x i8], [10 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 ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 27)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 1)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 40)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 20)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 10)
ret i32 0
}