#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 *);
int output_psacc(FILE *fd) {
  fprintf(fd, "%%%%postscript /up-arrow{M 2 -7 RL -4 0 RL fill}!\n"
              "%%%%postscript "
              "/dn-arrow{gsave T 180 rotate 0 0 up-arrow grestore}!\n");
  fprintf(fd, "%%%%postscript "
              "/sh3{2 copy nt0 exch 2 sub exch 14.5 add up-arrow}!\n"
              "%%%%postscript "
              "/ft3{2 copy nt0 exch 1.3 add exch 14.5 sub dn-arrow}!\n");
  fprintf(fd, "%%%%postscript /sh259/sh1 load !\n"
              "%%%%postscript /ft259/ft1 load !\n");
  fprintf(fd, "%%%%postscript /sh771/sh0 load !\n"
              "%%%%postscript /ft771/ft0 load !\n");
  fprintf(
      fd,
      "%%%%postscript /sh515{2 copy sh0 exch 1.2 sub exch 15 sub dn-arrow}!\n"
      "%%%%postscript /ft515{2 copy ft0 exch 1.8 sub exch 14 add up-arrow}!\n");
  return 1;
}


x86 assembly (clang, -O0):
<output_psacc>:
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    0xf40(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfb9(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfec(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x101f(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_psacc>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <fprintf@plt>
lea    0xf50(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
lea    0xfca(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
lea    0xffe(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
lea    0x1032(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [119 x i8] c"%%%%postscript /up-arrow{M 2 -7 RL -4 0 RL fill}!\0A%%%%postscript /dn-arrow{gsave T 180 rotate 0 0 up-arrow grestore}!\0A\00"
@.str.1 = [137 x i8] c"%%%%postscript /sh3{2 copy nt0 exch 2 sub exch 14.5 add up-arrow}!\0A%%%%postscript /ft3{2 copy nt0 exch 1.3 add exch 14.5 sub dn-arrow}!\0A\00"
@.str.2 = [67 x i8] c"%%%%postscript /sh259/sh1 load !\0A%%%%postscript /ft259/ft1 load !\0A\00"
@.str.3 = [67 x i8] c"%%%%postscript /sh771/sh0 load !\0A%%%%postscript /ft771/ft0 load !\0A\00"
@.str.4 = [139 x i8] c"%%%%postscript /sh515{2 copy sh0 exch 1.2 sub exch 15 sub dn-arrow}!\0A%%%%postscript /ft515{2 copy ft0 exch 1.8 sub exch 14 add up-arrow}!\0A\00"
define i32 @output_psacc(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @fprintf(i32* %9, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.4, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [119 x i8] c"%%%%postscript /up-arrow{M 2 -7 RL -4 0 RL fill}!\0A%%%%postscript /dn-arrow{gsave T 180 rotate 0 0 up-arrow grestore}!\0A\00"
@.str.1 = [137 x i8] c"%%%%postscript /sh3{2 copy nt0 exch 2 sub exch 14.5 add up-arrow}!\0A%%%%postscript /ft3{2 copy nt0 exch 1.3 add exch 14.5 sub dn-arrow}!\0A\00"
@.str.2 = [67 x i8] c"%%%%postscript /sh259/sh1 load !\0A%%%%postscript /ft259/ft1 load !\0A\00"
@.str.3 = [67 x i8] c"%%%%postscript /sh771/sh0 load !\0A%%%%postscript /ft771/ft0 load !\0A\00"
@.str.4 = [139 x i8] c"%%%%postscript /sh515{2 copy sh0 exch 1.2 sub exch 15 sub dn-arrow}!\0A%%%%postscript /ft515{2 copy ft0 exch 1.8 sub exch 14 add up-arrow}!\0A\00"
define i32 @output_psacc(i32* nocapture %0) {
%2 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.4, i64 0, i64 0))
ret i32 1
}