#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 /*<<< orphan*/ stdout;
int /*<<< orphan*/ version_fprint(int /*<<< orphan*/);
void print_version() {
  printf("zc ZPL Compiler Version ");
  version_fprint(stdout);
  printf("\n");
  printf("Copyright (c) 1996 - 2004 -- University of Washington\n");
  printf("\n");
  printf("ZPL Research Group\nDepartment of Computer Science and "
         "Engineering\nUniversity of Washington\nBox 352350\nSeattle, "
         "Washington 98195-2350  USA\nzpl-info@cs.washington.edu\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <version_fprint@plt>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1060 <version_fprint@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xead(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"zc ZPL Compiler Version \00"
@stdout = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [55 x i8] c"Copyright (c) 1996 - 2004 -- University of Washington\0A\00"
@.str.3 = [166 x i8] c"ZPL Research Group\0ADepartment of Computer Science and Engineering\0AUniversity of Washington\0ABox 352350\0ASeattle, Washington 98195-2350 USA\0Azpl-info@cs.washington.edu\0A\00"
define void @print_version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = call i32 @version_fprint(i32 %2)
%4 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"zc ZPL Compiler Version \00"
@stdout = global i32 0
@str = [54 x i8] c"Copyright (c) 1996 - 2004 -- University of Washington\00"
@str.4 = [165 x i8] c"ZPL Research Group\0ADepartment of Computer Science and Engineering\0AUniversity of Washington\0ABox 352350\0ASeattle, Washington 98195-2350 USA\0Azpl-info@cs.washington.edu\00"
define void @print_version() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @stdout
%3 = tail call i32 @version_fprint(i32 %2)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([165 x i8], [165 x i8]* @str.4, i64 0, i64 0))
%8 = tail call i32 @putchar(i32 10)
ret void
}