#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_lib_xprintf(char *, ...);
int /*<<< orphan*/ glp_version();
void print_version(int briefly) {
  _glp_lib_xprintf("GLPSOL: GLPK LP/MIP Solver %s\n", glp_version());
  if (briefly)
    goto done;
  _glp_lib_xprintf("\n");
  _glp_lib_xprintf("Copyright (C) 2008 Andrew Makhorin, Department for Appli"
                   "ed Informatics,\n");
  _glp_lib_xprintf("Moscow Aviation Institute, Moscow, Russia. All rights re"
                   "served.\n");
  _glp_lib_xprintf("\n");
  _glp_lib_xprintf("This program has ABSOLUTELY NO WARRANTY.\n");
  _glp_lib_xprintf("\n");
  _glp_lib_xprintf("This program is free software; you may re-distribute it "
                   "under the terms\n");
  _glp_lib_xprintf("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_lib_xprintf@plt>
cmpl   $0x0,-0x4(%rbp)
je     1151 <print_version+0x31>
jmp    11c1 <print_version+0xa1>
lea    0xf0e(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xef4(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xf19(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@plt>
lea    0xf62(%rip),%rdi
mov    $0x0,%al
call   1040 <_glp_lib_xprintf@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_lib_xprintf@plt>
test   %ebx,%ebx
je     1140 <print_version+0x20>
pop    %rbx
ret
lea    0xf1f(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
lea    0xec7(%rip),%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
lea    0xf02(%rip),%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
lea    0xf2b(%rip),%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
lea    0xf3d(%rip),%rdi
xor    %eax,%eax
call   1040 <_glp_lib_xprintf@plt>
lea    0xf78(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <_glp_lib_xprintf@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"GLPSOL: GLPK LP/MIP Solver %s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [73 x i8] c"Copyright (C) 2008 Andrew Makhorin, Department for Applied Informatics,\0A\00"
@.str.3 = [65 x i8] c"Moscow Aviation Institute, Moscow, Russia. All rights reserved.\0A\00"
@.str.4 = [42 x i8] c"This program has ABSOLUTELY NO WARRANTY.\0A\00"
@.str.5 = [73 x i8] c"This program is free software; you may re-distribute it under the terms\0A\00"
@.str.6 = [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_lib_xprintf(i8* getelementptr inbounds ([31 x i8], [31 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 %17
8: ; preds = %1
%9 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
br label %17
17: ; preds = %8, %7
ret void
}

LLVM IR (-O2):
@.str = [31 x i8] c"GLPSOL: GLPK LP/MIP Solver %s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [73 x i8] c"Copyright (C) 2008 Andrew Makhorin, Department for Applied Informatics,\0A\00"
@.str.3 = [65 x i8] c"Moscow Aviation Institute, Moscow, Russia. All rights reserved.\0A\00"
@.str.4 = [42 x i8] c"This program has ABSOLUTELY NO WARRANTY.\0A\00"
@.str.5 = [73 x i8] c"This program is free software; you may re-distribute it under the terms\0A\00"
@.str.6 = [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_lib_xprintf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = icmp eq i32 %0, 0
br i1 %4, label %5, label %14
5: ; preds = %1
%6 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @_glp_lib_xprintf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
br label %14
14: ; preds = %1, %5
ret void
}