#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*/ glp_printf(char *, ...);
int /*<<< orphan*/ glp_version();
void print_version(int briefly) {
  glp_printf("GLPSOL: GLPK LP/MIP Solver, v%s\n", glp_version());
  if (briefly)
    goto done;
  glp_printf("\n");
  glp_printf("Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, "
             "2007, 2008,\n");
  glp_printf("2009, 2010, 2011, 2013 Andrew Makhorin, Department for A"
             "pplied\n");
  glp_printf("Informatics, Moscow Aviation Institute, Moscow, Russia. "
             "All rights\n");
  glp_printf("reserved. E-mail: <mao@gnu.org>.\n");
  glp_printf("\n");
  glp_printf("This program has ABSOLUTELY NO WARRANTY.\n");
  glp_printf("\n");
  glp_printf("This program is free software; you may re-distribute it "
             "under the terms\n");
  glp_printf("of the GNU General Public License version 3 or later.\n");
done:
  return;
}


x86 assembly (clang, -O0):
<print_version>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <glp_version@plt>
mov    %eax,%esi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     1151 <print_version+0x31>
jmp    11dd <print_version+0xbd>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xf24(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xf5a(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xf60(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xf6e(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
lea    0xfa9(%rip),%rdi
mov    $0x0,%al
call   1040 <glp_printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_version>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <glp_version@plt>
lea    0xecf(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <glp_printf@plt>
test   %ebx,%ebx
je     1140 <print_version+0x20>
pop    %rbx
ret
lea    0xf1d(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xf00(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xf32(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xf68(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xf72(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xf84(%rip),%rdi
xor    %eax,%eax
call   1040 <glp_printf@plt>
lea    0xfbf(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <glp_printf@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"GLPSOL: GLPK LP/MIP Solver, v%s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [69 x i8] c"Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,\0A\00"
@.str.3 = [64 x i8] c"2009, 2010, 2011, 2013 Andrew Makhorin, Department for Applied\0A\00"
@.str.4 = [68 x i8] c"Informatics, Moscow Aviation Institute, Moscow, Russia. All rights\0A\00"
@.str.5 = [34 x i8] c"reserved. E-mail: <mao@gnu.org>.\0A\00"
@.str.6 = [42 x i8] c"This program has ABSOLUTELY NO WARRANTY.\0A\00"
@.str.7 = [73 x i8] c"This program is free software; you may re-distribute it under the terms\0A\00"
@.str.8 = [55 x i8] c"of the GNU General Public License version 3 or later.\0A\00"
define void @print_version(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @glp_version()
%4 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %19
8: ; preds = %1
%9 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0))
%18 = call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
br label %19
19: ; preds = %8, %7
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"GLPSOL: GLPK LP/MIP Solver, v%s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [69 x i8] c"Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,\0A\00"
@.str.3 = [64 x i8] c"2009, 2010, 2011, 2013 Andrew Makhorin, Department for Applied\0A\00"
@.str.4 = [68 x i8] c"Informatics, Moscow Aviation Institute, Moscow, Russia. All rights\0A\00"
@.str.5 = [34 x i8] c"reserved. E-mail: <mao@gnu.org>.\0A\00"
@.str.6 = [42 x i8] c"This program has ABSOLUTELY NO WARRANTY.\0A\00"
@.str.7 = [73 x i8] c"This program is free software; you may re-distribute it under the terms\0A\00"
@.str.8 = [55 x i8] c"of the GNU General Public License version 3 or later.\0A\00"
define void @print_version(i32 %0) {
%2 = tail call i32 (...) @glp_version()
%3 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = icmp eq i32 %0, 0
br i1 %4, label %5, label %16
5: ; preds = %1
%6 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @glp_printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
br label %16
16: ; preds = %1, %5
ret void
}