#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void generate_includes(FILE *f) {
  fprintf(f, "#include \"sysconfig.h\"\n");
  fprintf(f, "#include \"sysdeps.h\"\n");
  fprintf(f, "#include \"options.h\"\n");
  fprintf(f, "#include \"memory.h\"\n");
  fprintf(f, "#include \"custom.h\"\n");
  fprintf(f, "#include \"events.h\"\n");
  fprintf(f, "#include \"newcpu.h\"\n");
  fprintf(f, "#include \"machdep/m68kops.h\"\n");
  fprintf(f, "#include \"cpu_prefetch.h\"\n");
  fprintf(f, "#include \"cputbl.h\"\n");
  fprintf(f, "#define CPUFUNC(x) x##_ff\n"
             "#define SET_CFLG_ALWAYS(flags, x) SET_CFLG(flags, x)\n"
             "#define SET_NFLG_ALWAYS(flags, x) SET_NFLG(flags, x)\n"
             "#ifdef NOFLAGS\n"
             "#include \"noflags.h\"\n"
             "#endif\n");
}


x86 assembly (clang, -O0):
<generate_includes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee1(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeed(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xef2(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xef7(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xefc(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf01(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf0f(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1a(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf1f(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate_includes>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xee4(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xee1(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xede(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xeda(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xed6(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xed2(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xece(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xed3(%rip),%rdi
mov    $0x1a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xed5(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xed1(%rip),%rdi
mov    $0xaf,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <fwrite@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"#include \22sysconfig.h\22\0A\00"
@.str.1 = [22 x i8] c"#include \22sysdeps.h\22\0A\00"
@.str.2 = [22 x i8] c"#include \22options.h\22\0A\00"
@.str.3 = [21 x i8] c"#include \22memory.h\22\0A\00"
@.str.4 = [21 x i8] c"#include \22custom.h\22\0A\00"
@.str.5 = [21 x i8] c"#include \22events.h\22\0A\00"
@.str.6 = [21 x i8] c"#include \22newcpu.h\22\0A\00"
@.str.7 = [30 x i8] c"#include \22machdep/m68kops.h\22\0A\00"
@.str.8 = [27 x i8] c"#include \22cpu_prefetch.h\22\0A\00"
@.str.9 = [21 x i8] c"#include \22cputbl.h\22\0A\00"
@.str.10 = [176 x i8] c"#define CPUFUNC(x) x##_ff\0A#define SET_CFLG_ALWAYS(flags, x) SET_CFLG(flags, x)\0A#define SET_NFLG_ALWAYS(flags, x) SET_NFLG(flags, x)\0A#ifdef NOFLAGS\0A#include \22noflags.h\22\0A#endif\0A\00"
define void @generate_includes(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32*, i32** %2
%20 = call i32 @fprintf(i32* %19, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32*, i32** %2
%22 = call i32 @fprintf(i32* %21, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32*, i32** %2
%24 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"#include \22sysconfig.h\22\0A\00"
@.str.1 = [22 x i8] c"#include \22sysdeps.h\22\0A\00"
@.str.2 = [22 x i8] c"#include \22options.h\22\0A\00"
@.str.3 = [21 x i8] c"#include \22memory.h\22\0A\00"
@.str.4 = [21 x i8] c"#include \22custom.h\22\0A\00"
@.str.5 = [21 x i8] c"#include \22events.h\22\0A\00"
@.str.6 = [21 x i8] c"#include \22newcpu.h\22\0A\00"
@.str.7 = [30 x i8] c"#include \22machdep/m68kops.h\22\0A\00"
@.str.8 = [27 x i8] c"#include \22cpu_prefetch.h\22\0A\00"
@.str.9 = [21 x i8] c"#include \22cputbl.h\22\0A\00"
@.str.10 = [176 x i8] c"#define CPUFUNC(x) x##_ff\0A#define SET_CFLG_ALWAYS(flags, x) SET_CFLG(flags, x)\0A#define SET_NFLG_ALWAYS(flags, x) SET_NFLG(flags, x)\0A#ifdef NOFLAGS\0A#include \22noflags.h\22\0A#endif\0A\00"
define void @generate_includes(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 23, i64 1, i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 21, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i64 21, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i64 20, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i64 20, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i64 20, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 20, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i64 29, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i64 26, i64 1, i32* %0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i64 20, i64 1, i32* %0)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([176 x i8], [176 x i8]* @.str.10, i64 0, i64 0), i64 175, i64 1, i32* %0)
ret void
}