#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 write_header(FILE *out, char *expression) {
  fprintf(out, "%%!PS-Adobe-3.0 EPSF-3.0\n");
  fprintf(out, "%%%%DocumentMedia: Letter %d %d 0 () ()\n", 18 + 594, 18 + 774);
  fprintf(out, "%%%%Title: %s\n", expression);
  fprintf(out, "%%%%Creator: Plot utility\n");
  fprintf(out, "%%%%Pages: 1\n");
  fprintf(out, "%%%%Orientation: Landscape\n");
  fprintf(out, "%%%%BoundingBox: %d %d %d %d\n", 18, 18, 594, 774);
  fprintf(out, "%%%%EndComments\n\n");
  fprintf(out, "%%%%Page 1 1\n");
}


x86 assembly (clang, -O0):
<write_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xedd(%rip),%rsi
mov    $0x264,%edx
mov    $0x318,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xee6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xee8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xef2(%rip),%rsi
mov    $0x12,%ecx
mov    $0x252,%r8d
mov    $0x306,%r9d
mov    %ecx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_header>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xeeb(%rip),%rsi
mov    %rbx,%rdi
mov    $0x264,%edx
mov    $0x318,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xef9(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xef4(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xefe(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xefb(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf06(%rip),%rsi
mov    %rbx,%rdi
mov    $0x12,%edx
mov    $0x12,%ecx
mov    $0x252,%r8d
mov    $0x306,%r9d
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xefd(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xefe(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"%%!PS-Adobe-3.0 EPSF-3.0\0A\00"
@.str.1 = [41 x i8] c"%%%%DocumentMedia: Letter %d %d 0 () ()\0A\00"
@.str.2 = [15 x i8] c"%%%%Title: %s\0A\00"
@.str.3 = [27 x i8] c"%%%%Creator: Plot utility\0A\00"
@.str.4 = [14 x i8] c"%%%%Pages: 1\0A\00"
@.str.5 = [28 x i8] c"%%%%Orientation: Landscape\0A\00"
@.str.6 = [30 x i8] c"%%%%BoundingBox: %d %d %d %d\0A\00"
@.str.7 = [18 x i8] c"%%%%EndComments\0A\0A\00"
@.str.8 = [14 x i8] c"%%%%Page 1 1\0A\00"
define void @write_header(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 612, i32 792)
%9 = load i32*, i32** %3
%10 = load i8*, i8** %4
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %10)
%12 = load i32*, i32** %3
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32*, i32** %3
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32*, i32** %3
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32*, i32** %3
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 18, i32 18, i32 594, i32 774)
%20 = load i32*, i32** %3
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32*, i32** %3
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"%%!PS-Adobe-3.0 EPSF-3.0\0A\00"
@.str.1 = [41 x i8] c"%%%%DocumentMedia: Letter %d %d 0 () ()\0A\00"
@.str.2 = [15 x i8] c"%%%%Title: %s\0A\00"
@.str.3 = [27 x i8] c"%%%%Creator: Plot utility\0A\00"
@.str.4 = [14 x i8] c"%%%%Pages: 1\0A\00"
@.str.5 = [28 x i8] c"%%%%Orientation: Landscape\0A\00"
@.str.6 = [30 x i8] c"%%%%BoundingBox: %d %d %d %d\0A\00"
@.str.7 = [18 x i8] c"%%%%EndComments\0A\0A\00"
@.str.8 = [14 x i8] c"%%%%Page 1 1\0A\00"
define void @write_header(i32* nocapture %0, i8* %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 612, i32 792)
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 18, i32 18, i32 594, i32 774)
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
ret void
}