#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcmp(char *, char *);
void print_error_global(char *msg, char *file, int n) {
  printf("\n");
  if (!strcmp(msg, "open")) {
    printf("ERROR: unable to open file %s. Please, check that the name"
           " of the file you provided is correct.\n",
           file);
  } else if (!strcmp(msg, "read")) {
    printf("ERROR: unable to read file %s. Please, check check that the"
           " format is correct (refer to the documentation).\n",
           file);
  } else if (!strcmp(msg, "interne")) {
    printf("ERROR: internal error. Please run the program again. If"
           " the error is repeated, contact us.\n");
  } else if (!strcmp(msg, "constant")) {
    printf("ERROR: %d SNPs are invariant. Please, remove these SNPs"
           " before the analysis.\n",
           n);
  } else if (!strcmp(msg, "nan")) {
    printf("ERROR: internal error. Please, run the program again. If"
           " the error is still present, contact us.\n");
  } else {
    printf("ERROR: Internal error.\n");
  }
  printf("\n");
  exit(1);
}


x86 assembly (clang, -O0):
<print_error_global>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    0xf8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
lea    0xea4(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1181 <print_error_global+0x51>
mov    -0x10(%rbp),%rsi
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    125a <print_error_global+0x12a>
mov    -0x8(%rbp),%rdi
lea    0xeda(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11b1 <print_error_global+0x81>
mov    -0x10(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1255 <print_error_global+0x125>
mov    -0x8(%rbp),%rdi
lea    0xf1c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11dd <print_error_global+0xad>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1250 <print_error_global+0x120>
mov    -0x8(%rbp),%rdi
lea    0xf54(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    120c <print_error_global+0xdc>
mov    -0x14(%rbp),%esi
lea    0xf45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124b <print_error_global+0x11b>
mov    -0x8(%rbp),%rdi
lea    0xf7c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1238 <print_error_global+0x108>
lea    0xf6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1246 <print_error_global+0x116>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124b <print_error_global+0x11b>
jmp    1250 <print_error_global+0x120>
jmp    1255 <print_error_global+0x125>
jmp    125a <print_error_global+0x12a>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<print_error_global>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1183 <print_error_global+0x33>
lea    0xe84(%rip),%rdi
jmp    119d <print_error_global+0x4d>
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11a9 <print_error_global+0x59>
lea    0xece(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1213 <print_error_global+0xc3>
lea    0xf28(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11c5 <print_error_global+0x75>
lea    0xf78(%rip),%rdi
jmp    120e <print_error_global+0xbe>
lea    0xf14(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11eb <print_error_global+0x9b>
lea    0xf0a(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1213 <print_error_global+0xc3>
lea    0xf45(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1207 <print_error_global+0xb7>
lea    0xf91(%rip),%rdi
jmp    120e <print_error_global+0xbe>
lea    0xfe9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [5 x i8] c"open\00"
@.str.2 = [97 x i8] c"ERROR: unable to open file %s. Please, check that the name of the file you provided is correct.\0A\00"
@.str.3 = [5 x i8] c"read\00"
@.str.4 = [109 x i8] c"ERROR: unable to read file %s. Please, check check that the format is correct (refer to the documentation).\0A\00"
@.str.5 = [8 x i8] c"interne\00"
@.str.6 = [92 x i8] c"ERROR: internal error. Please run the program again. If the error is repeated, contact us.\0A\00"
@.str.7 = [9 x i8] c"constant\00"
@.str.8 = [78 x i8] c"ERROR: %d SNPs are invariant. Please, remove these SNPs before the analysis.\0A\00"
@.str.9 = [4 x i8] c"nan\00"
@.str.10 = [98 x i8] c"ERROR: internal error. Please, run the program again. If the error is still present, contact us.\0A\00"
@.str.11 = [24 x i8] c"ERROR: Internal error.\0A\00"
define void @print_error_global(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = load i8*, i8** %4
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp ne i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %3
%12 = load i8*, i8** %5
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.2, i64 0, i64 0), i8* %12)
br label %46
14: ; preds = %3
%15 = load i8*, i8** %4
%16 = call i32 @strcmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp ne i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %14
%19 = load i8*, i8** %5
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.4, i64 0, i64 0), i8* %19)
br label %45
21: ; preds = %14
%22 = load i8*, i8** %4
%23 = call i32 @strcmp(i8* %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %21
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.6, i64 0, i64 0))
br label %44
27: ; preds = %21
%28 = load i8*, i8** %4
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%30 = icmp ne i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %27
%32 = load i32, i32* %6
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0), i32 %32)
br label %43
34: ; preds = %27
%35 = load i8*, i8** %4
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.10, i64 0, i64 0))
br label %42
40: ; preds = %34
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
br label %43
43: ; preds = %42, %31
br label %44
44: ; preds = %43, %25
br label %45
45: ; preds = %44, %18
br label %46
46: ; preds = %45, %11
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"open\00"
@.str.2 = [97 x i8] c"ERROR: unable to open file %s. Please, check that the name of the file you provided is correct.\0A\00"
@.str.3 = [5 x i8] c"read\00"
@.str.4 = [109 x i8] c"ERROR: unable to read file %s. Please, check check that the format is correct (refer to the documentation).\0A\00"
@.str.5 = [8 x i8] c"interne\00"
@.str.7 = [9 x i8] c"constant\00"
@.str.8 = [78 x i8] c"ERROR: %d SNPs are invariant. Please, remove these SNPs before the analysis.\0A\00"
@.str.9 = [4 x i8] c"nan\00"
@str = [91 x i8] c"ERROR: internal error. Please run the program again. If the error is repeated, contact us.\00"
@str.12 = [97 x i8] c"ERROR: internal error. Please, run the program again. If the error is still present, contact us.\00"
@str.13 = [23 x i8] c"ERROR: Internal error.\00"
define void @print_error_global(i8* nocapture %0, i8* %1, i32 %2) {
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @.str.2, i64 0, i64 0), i8* %1)
br label %31
9: ; preds = %3
%10 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @.str.4, i64 0, i64 0), i8* %1)
br label %31
14: ; preds = %9
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str, i64 0, i64 0))
br label %31
19: ; preds = %14
%20 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.8, i64 0, i64 0), i32 %2)
br label %31
24: ; preds = %19
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.12, i64 0, i64 0))
br label %31
29: ; preds = %24
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
br label %31
31: ; preds = %12, %22, %29, %27, %17, %7
%32 = tail call i32 @putchar(i32 10)
%33 = tail call i32 @exit(i32 1)
unreachable
}