#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 main() {
  int i;
  int size = 24;
  printf(
      "postscript /tmpstr 1 string def\n"
      "postscript /sagc {3 1 roll M /Sagittal %d selectfont\n"
      "postscript 	dup tmpstr 0 3 -1 roll put tmpstr stringwidth pop neg "
      "2 div 0 RM\n"
      "postscript 	currentfont/Encoding get exch get glyphshow}bind def\n"
      "postscript /sags "
      "{3 1 roll exch 1.5 sub exch M /Sagittal %d selectfont showc}bind def\n"
      "postscript sagpure {\n",
      size, size);
  for (i = 32; i <= 254; i++) {
    printf("postscript /sh%d{%d sagc}!\n", i - 1, i);
    printf("postscript /ft%d{%d sagc}!\n", i - 1, i);
  }
  printf("postscript /sh254{(\\377)sags}!\n");
  printf("postscript /ft254{(\\377)sags}!\n");
  printf("postscript } bind def %% (sagpure)\n");
  printf("postscript sagpure\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x18,-0xc(%rbp)
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x20,-0x8(%rbp)
cmpl   $0xfe,-0x8(%rbp)
jg     118a <main+0x7a>
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
mov    -0x8(%rbp),%edx
lea    0xff1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
mov    -0x8(%rbp),%edx
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1141 <main+0x31>
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xed2(%rip),%rdi
mov    $0x18,%esi
mov    $0x18,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x20,%ebx
lea    0x1004(%rip),%r14
lea    0x1019(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    -0x1(%rbx),%ebp
mov    %r14,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebx
cmp    $0xff,%ebx
jne    1160 <main+0x40>
lea    0x101a(%rip),%rdi
call   1030 <puts@plt>
lea    0x102d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfde(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [335 x i8] c"postscript /tmpstr 1 string def\0Apostscript /sagc {3 1 roll M /Sagittal %d selectfont\0Apostscript \09dup tmpstr 0 3 -1 roll put tmpstr stringwidth pop neg 2 div 0 RM\0Apostscript \09currentfont/Encoding get exch get glyphshow}bind def\0Apostscript /sags {3 1 roll exch 1.5 sub exch M /Sagittal %d selectfont showc}bind def\0Apostscript sagpure {\0A\00"
@.str.1 = [28 x i8] c"postscript /sh%d{%d sagc}!\0A\00"
@.str.2 = [28 x i8] c"postscript /ft%d{%d sagc}!\0A\00"
@.str.3 = [32 x i8] c"postscript /sh254{(\\377)sags}!\0A\00"
@.str.4 = [32 x i8] c"postscript /ft254{(\\377)sags}!\0A\00"
@.str.5 = [36 x i8] c"postscript } bind def %% (sagpure)\0A\00"
@.str.6 = [20 x i8] c"postscript sagpure\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 24, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* %3
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([335 x i8], [335 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
store i32 32, i32* %2
br label %7
7: ; preds = %19, %0
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 254
br i1 %9, label %10, label %22
10: ; preds = %7
%11 = load i32, i32* %2
%12 = sub nsw i32 %11, 1
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %13)
%15 = load i32, i32* %2
%16 = sub nsw i32 %15, 1
%17 = load i32, i32* %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %16, i32 %17)
br label %19
19: ; preds = %10
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %7
22: ; preds = %7
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str = [335 x i8] c"postscript /tmpstr 1 string def\0Apostscript /sagc {3 1 roll M /Sagittal %d selectfont\0Apostscript \09dup tmpstr 0 3 -1 roll put tmpstr stringwidth pop neg 2 div 0 RM\0Apostscript \09currentfont/Encoding get exch get glyphshow}bind def\0Apostscript /sags {3 1 roll exch 1.5 sub exch M /Sagittal %d selectfont showc}bind def\0Apostscript sagpure {\0A\00"
@.str.1 = [28 x i8] c"postscript /sh%d{%d sagc}!\0A\00"
@.str.2 = [28 x i8] c"postscript /ft%d{%d sagc}!\0A\00"
@.str.5 = [36 x i8] c"postscript } bind def %% (sagpure)\0A\00"
@str = [31 x i8] c"postscript /sh254{(\\377)sags}!\00"
@str.7 = [31 x i8] c"postscript /ft254{(\\377)sags}!\00"
@str.8 = [19 x i8] c"postscript sagpure\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([335 x i8], [335 x i8]* @.str, i64 0, i64 0), i32 24, i32 24)
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 32, %0 ], [ %7, %2 ]
%4 = add nsw i32 %3, -1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %3)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 %3)
%7 = add nuw nsw i32 %3, 1
%8 = icmp eq i32 %7, 255
br i1 %8, label %9, label %2
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.7, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.8, i64 0, i64 0))
ret i32 0
}