#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*/ WrMessage(char *);
int /*<<< orphan*/ printf(char *, ...);
void WrCompilerMacros(void) {
  WrMessage("@COMPILER-MACROS");
  WrMessage("@COMPILER-MACROS-GENERAL");
  printf("Macro: %s - value: %d\n", ("__STDC__"), (1));
  printf("\n");
  WrMessage("@COMPILER-MACROS-SPECIFIC");
  printf("\n");
  WrMessage("@COMPILER-MACROS-COMPILER");
  printf("Compiler: %s\n\n", "Unknown");
  printf("\n");
  WrMessage("@COMPILER-MACROS-PREPOCESSOR");
  printf("File, line: %s %d\n\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/mapmeld/fortran-machine/refs/heads/main/"
         "flibs-0.9/flibs/chksys/chksysc.c",
         664);
  return;
}


x86 assembly (clang, -O0):
<WrCompilerMacros>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <WrMessage@plt>
lea    0xeda(%rip),%rdi
call   1040 <WrMessage@plt>
lea    0xee7(%rip),%rdi
lea    0xef7(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
call   1040 <WrMessage@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
call   1040 <WrMessage@plt>
lea    0xeed(%rip),%rdi
lea    0xef5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1040 <WrMessage@plt>
lea    0xef2(%rip),%rdi
lea    0xeff(%rip),%rsi
mov    $0x298,%edx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<WrCompilerMacros>:
push   %rax
lea    0xec8(%rip),%rdi
call   1050 <WrMessage@plt>
lea    0xecd(%rip),%rdi
call   1050 <WrMessage@plt>
lea    0xeda(%rip),%rdi
lea    0xeea(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed6(%rip),%rdi
call   1050 <WrMessage@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeda(%rip),%rdi
call   1050 <WrMessage@plt>
lea    0xee8(%rip),%rdi
lea    0xef0(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xee0(%rip),%rdi
call   1050 <WrMessage@plt>
lea    0xef1(%rip),%rdi
lea    0xefe(%rip),%rsi
mov    $0x298,%edx
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"@COMPILER-MACROS\00"
@.str.1 = [25 x i8] c"@COMPILER-MACROS-GENERAL\00"
@.str.2 = [23 x i8] c"Macro: %s - value: %d\0A\00"
@.str.3 = [9 x i8] c"__STDC__\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [26 x i8] c"@COMPILER-MACROS-SPECIFIC\00"
@.str.6 = [26 x i8] c"@COMPILER-MACROS-COMPILER\00"
@.str.7 = [15 x i8] c"Compiler: %s\0A\0A\00"
@.str.8 = [8 x i8] c"Unknown\00"
@.str.9 = [29 x i8] c"@COMPILER-MACROS-PREPOCESSOR\00"
@.str.10 = [20 x i8] c"File, line: %s %d\0A\0A\00"
@.str.11 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/mapmeld/fortran-machine/refs/heads/main/flibs-0.9/flibs/chksys/chksysc.c\00"
define void @WrCompilerMacros() {
%1 = call i32 @WrMessage(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @WrMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 1)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @WrMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @WrMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @WrMessage(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.11, i64 0, i64 0), i32 664)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"@COMPILER-MACROS\00"
@.str.1 = [25 x i8] c"@COMPILER-MACROS-GENERAL\00"
@.str.2 = [23 x i8] c"Macro: %s - value: %d\0A\00"
@.str.3 = [9 x i8] c"__STDC__\00"
@.str.5 = [26 x i8] c"@COMPILER-MACROS-SPECIFIC\00"
@.str.6 = [26 x i8] c"@COMPILER-MACROS-COMPILER\00"
@.str.7 = [15 x i8] c"Compiler: %s\0A\0A\00"
@.str.8 = [8 x i8] c"Unknown\00"
@.str.9 = [29 x i8] c"@COMPILER-MACROS-PREPOCESSOR\00"
@.str.10 = [20 x i8] c"File, line: %s %d\0A\0A\00"
@.str.11 = [163 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/mapmeld/fortran-machine/refs/heads/main/flibs-0.9/flibs/chksys/chksysc.c\00"
define void @WrCompilerMacros() {
%1 = tail call i32 @WrMessage(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @WrMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 1)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @WrMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @WrMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @WrMessage(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.11, i64 0, i64 0), i32 664)
ret void
}