#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);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
void show_predefined_macros(void) {
  puts("[predefined_macros]");
  printf("    __STDC__ = %d\n", 1);
  printf("    __STDC_HOSTED__ = %d\n", 1);
  printf("    __STDC_VERSION__ = %ldL\n", 201710L);
  puts("    __STDC_ISO_10646__ = undefined");
  puts("    __STDC_MB_MIGHT_NEQ_WC__ = undefined");
  printf("    __STDC_UTF_16__ = %d\n", 1);
  printf("    __STDC_UTF_32__ = %d\n", 1);
  puts("    __STDC_ANALYZABLE__ = undefined");
  puts("    __STDC_IEC_559_COMPLEX__ = undefined");
  puts("    __STDC_LIB_EXT1__ = undefined");
  puts("    __STDC_NO_ATOMICS__ = undefined");
  puts("    __STDC_NO_COMPLEX__ = undefined");
  puts("    __STDC_NO_THREADS__ = undefined");
  puts("    __STDC_NO_VLA__ = undefined");
  putchar('\n');
}


x86 assembly (clang, -O0):
<show_predefined_macros>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <puts@plt>
lea    0xecd(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x313ee,%esi
call   1050 <printf@plt>
lea    0xee4(%rip),%rdi
call   1040 <puts@plt>
lea    0xefb(%rip),%rdi
call   1040 <puts@plt>
lea    0xf18(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xf2a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf42(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf75(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbd(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_predefined_macros>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed0(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x313ee,%esi
call   1050 <printf@plt>
lea    0xee7(%rip),%rdi
call   1040 <puts@plt>
lea    0xefe(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1b(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf45(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
call   1040 <puts@plt>
lea    0xf78(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"[predefined_macros]\00"
@.str.1 = [19 x i8] c" __STDC__ = %d\0A\00"
@.str.2 = [26 x i8] c" __STDC_HOSTED__ = %d\0A\00"
@.str.3 = [29 x i8] c" __STDC_VERSION__ = %ldL\0A\00"
@.str.4 = [35 x i8] c" __STDC_ISO_10646__ = undefined\00"
@.str.5 = [41 x i8] c" __STDC_MB_MIGHT_NEQ_WC__ = undefined\00"
@.str.6 = [26 x i8] c" __STDC_UTF_16__ = %d\0A\00"
@.str.7 = [26 x i8] c" __STDC_UTF_32__ = %d\0A\00"
@.str.8 = [36 x i8] c" __STDC_ANALYZABLE__ = undefined\00"
@.str.9 = [41 x i8] c" __STDC_IEC_559_COMPLEX__ = undefined\00"
@.str.10 = [34 x i8] c" __STDC_LIB_EXT1__ = undefined\00"
@.str.11 = [36 x i8] c" __STDC_NO_ATOMICS__ = undefined\00"
@.str.12 = [36 x i8] c" __STDC_NO_COMPLEX__ = undefined\00"
@.str.13 = [36 x i8] c" __STDC_NO_THREADS__ = undefined\00"
@.str.14 = [32 x i8] c" __STDC_NO_VLA__ = undefined\00"
define void @show_predefined_macros() {
%1 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 1)
%4 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 201710)
%5 = call i32 @puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 1)
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 1)
%9 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"[predefined_macros]\00"
@.str.1 = [19 x i8] c" __STDC__ = %d\0A\00"
@.str.2 = [26 x i8] c" __STDC_HOSTED__ = %d\0A\00"
@.str.3 = [29 x i8] c" __STDC_VERSION__ = %ldL\0A\00"
@.str.4 = [35 x i8] c" __STDC_ISO_10646__ = undefined\00"
@.str.5 = [41 x i8] c" __STDC_MB_MIGHT_NEQ_WC__ = undefined\00"
@.str.6 = [26 x i8] c" __STDC_UTF_16__ = %d\0A\00"
@.str.7 = [26 x i8] c" __STDC_UTF_32__ = %d\0A\00"
@.str.8 = [36 x i8] c" __STDC_ANALYZABLE__ = undefined\00"
@.str.9 = [41 x i8] c" __STDC_IEC_559_COMPLEX__ = undefined\00"
@.str.10 = [34 x i8] c" __STDC_LIB_EXT1__ = undefined\00"
@.str.11 = [36 x i8] c" __STDC_NO_ATOMICS__ = undefined\00"
@.str.12 = [36 x i8] c" __STDC_NO_COMPLEX__ = undefined\00"
@.str.13 = [36 x i8] c" __STDC_NO_THREADS__ = undefined\00"
@.str.14 = [32 x i8] c" __STDC_NO_VLA__ = undefined\00"
define void @show_predefined_macros() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 201710)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 1)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 1)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @putchar(i8 signext 10)
ret void
}