#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 *, char const *, char const *, char const *,
                          char const *, char const *);
void print_header(const char *program_name, const char *test_source_file_name,
                  const char *mock_header_file_name) {
  printf("/*\n"
         " * This file is generated by '%s %s %s'.\n"
         " *\n"
         " * Compile this program to get a test-case executor.\n"
         " *\n"
         " */\n"
         "\n"
         "#define _XOPEN_SOURCE\n"
         "#include <stdlib.h>\n"
         "#include <stdio.h>\n"
         "#include <string.h>\n"
         "\n"
         "#define main MAIN /* To make sure we can test main() */\n"
         "#define inline\n"
         "#include \"%s\" /* Mock-up functions and design under test */\n"
         "#undef inline\n"
         "#include \"%s\" /* Test-cases */\n"
         "#undef main\n"
         "\n",
         program_name, test_source_file_name, mock_header_file_name,
         mock_header_file_name, test_source_file_name);
}


x86 assembly (clang, -O0):
<print_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x10(%rbp),%r9
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_header>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xee0(%rip),%rdi
mov    %rcx,%r8
mov    %rdx,%r9
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [380 x i8] c"/*\0A * This file is generated by '%s %s %s'.\0A *\0A * Compile this program to get a test-case executor.\0A *\0A */\0A\0A#define _XOPEN_SOURCE\0A#include <stdlib.h>\0A#include <stdio.h>\0A#include <string.h>\0A\0A#define main MAIN /* To make sure we can test main() */\0A#define inline\0A#include \22%s\22 /* Mock-up functions and design under test */\0A#undef inline\0A#include \22%s\22 /* Test-cases */\0A#undef main\0A\0A\00"
define void @print_header(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = load i8*, i8** %6
%11 = load i8*, i8** %5
%12 = call i32 @printf(i8* getelementptr inbounds ([380 x i8], [380 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %8, i8* %9, i8* %10, i8* %11)
ret void
}

LLVM IR (-O2):
@.str = [380 x i8] c"/*\0A * This file is generated by '%s %s %s'.\0A *\0A * Compile this program to get a test-case executor.\0A *\0A */\0A\0A#define _XOPEN_SOURCE\0A#include <stdlib.h>\0A#include <stdio.h>\0A#include <string.h>\0A\0A#define main MAIN /* To make sure we can test main() */\0A#define inline\0A#include \22%s\22 /* Mock-up functions and design under test */\0A#undef inline\0A#include \22%s\22 /* Test-cases */\0A#undef main\0A\0A\00"
define void @print_header(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([380 x i8], [380 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i8* %2, i8* %1)
ret void
}