#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 */
const char *gt_version_check(unsigned int required_major,
                             unsigned int required_minor,
                             unsigned int required_micro) {
  if (required_major > 1)
    return "GenomeTools library version too old (major mismatch)";
  if (required_major < 1)
    return "GenomeTools library version too new (major mismatch)";
  if (required_minor > 4)
    return "GenomeTools library version too old (minor mismatch)";
  if (required_micro > 1)
    return "GenomeTools library version too old (micro mismatch)";
  return NULL;
}


x86 assembly (clang, -O0):
<gt_version_check>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0x1,-0xc(%rbp)
jbe    1127 <gt_version_check+0x27>
lea    0xee2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117d <gt_version_check+0x7d>
cmpl   $0x1,-0xc(%rbp)
jae    1141 <gt_version_check+0x41>
lea    0xefd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117d <gt_version_check+0x7d>
cmpl   $0x4,-0x10(%rbp)
jbe    115b <gt_version_check+0x5b>
lea    0xf18(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117d <gt_version_check+0x7d>
cmpl   $0x1,-0x14(%rbp)
jbe    1175 <gt_version_check+0x75>
lea    0xf33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    117d <gt_version_check+0x7d>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gt_version_check>:
cmp    $0x1,%edi
jbe    110d <gt_version_check+0xd>
lea    0xef4(%rip),%rax
ret
test   %edi,%edi
je     111e <gt_version_check+0x1e>
cmp    $0x4,%esi
jbe    1126 <gt_version_check+0x26>
lea    0xf4d(%rip),%rax
ret
lea    0xf10(%rip),%rax
ret
xor    %eax,%eax
cmp    $0x2,%edx
lea    0xf6d(%rip),%rcx
cmovae %rcx,%rax
ret

LLVM IR (-O0):
@.str = [53 x i8] c"GenomeTools library version too old (major mismatch)\00"
@.str.1 = [53 x i8] c"GenomeTools library version too new (major mismatch)\00"
@.str.2 = [53 x i8] c"GenomeTools library version too old (minor mismatch)\00"
@.str.3 = [53 x i8] c"GenomeTools library version too old (micro mismatch)\00"
define i8* @gt_version_check(i32 %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i32, i32* %5
%9 = icmp ugt i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %3
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8** %4
br label %24
11: ; preds = %3
%12 = load i32, i32* %5
%13 = icmp ult i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %11
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), i8** %4
br label %24
15: ; preds = %11
%16 = load i32, i32* %6
%17 = icmp ugt i32 %16, 4
br i1 %17, label %18, label %19
18: ; preds = %15
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8** %4
br label %24
19: ; preds = %15
%20 = load i32, i32* %7
%21 = icmp ugt i32 %20, 1
br i1 %21, label %22, label %23
22: ; preds = %19
store i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8** %4
br label %24
23: ; preds = %19
store i8* null, i8** %4
br label %24
24: ; preds = %23, %22, %18, %14, %10
%25 = load i8*, i8** %4
ret i8* %25
}

LLVM IR (-O2):
@.str = [53 x i8] c"GenomeTools library version too old (major mismatch)\00"
@.str.1 = [53 x i8] c"GenomeTools library version too new (major mismatch)\00"
@.str.2 = [53 x i8] c"GenomeTools library version too old (minor mismatch)\00"
@.str.3 = [53 x i8] c"GenomeTools library version too old (micro mismatch)\00"
define i8* @gt_version_check(i32 %0, i32 %1, i32 %2) {
%4 = icmp ugt i32 %0, 1
br i1 %4, label %12, label %5
5: ; preds = %3
%6 = icmp eq i32 %0, 0
br i1 %6, label %12, label %7
7: ; preds = %5
%8 = icmp ugt i32 %1, 4
br i1 %8, label %12, label %9
9: ; preds = %7
%10 = icmp ugt i32 %2, 1
%11 = select i1 %10, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* null
br label %12
12: ; preds = %9, %7, %5, %3
%13 = phi i8* [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), %3 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.1, i64 0, i64 0), %5 ], [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), %7 ], [ %11, %9 ]
ret i8* %13
}