#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 */
size_t EI_CLASS;
size_t EI_DATA;
int EI_NIDENT;
#define ELFCLASS32 131
#define ELFCLASS64 130
#define ELFDATA2LSB 129
#define ELFDATA2MSB 128
char *ELFMAG;
int SELFMAG;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int fread(unsigned char *, int, int, int /*<<< orphan*/);
scalar_t__ memcmp(unsigned char *, char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  unsigned char ei[EI_NIDENT];
  union {
    short s;
    char c[2];
  } endian_test;
  if (argc != 2) {
    fprintf(stderr, "Error: no arch\n");
  }
  if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) {
    fprintf(stderr, "Error: input truncated\n");
    return 1;
  }
  if (memcmp(ei, ELFMAG, SELFMAG) != 0) {
    fprintf(stderr, "Error: not ELF\n");
    return 1;
  }
  switch (ei[EI_CLASS]) {
  case ELFCLASS32:
    printf("#define KERNEL_ELFCLASS ELFCLASS32\n");
    break;
  case ELFCLASS64:
    printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
    break;
  default:
    exit(1);
  }
  switch (ei[EI_DATA]) {
  case ELFDATA2LSB:
    printf("#define KERNEL_ELFDATA ELFDATA2LSB\n");
    break;
  case ELFDATA2MSB:
    printf("#define KERNEL_ELFDATA ELFDATA2MSB\n");
    break;
  default:
    exit(1);
  }
  if (sizeof(unsigned long) == 4) {
    printf("#define HOST_ELFCLASS ELFCLASS32\n");
  } else if (sizeof(unsigned long) == 8) {
    printf("#define HOST_ELFCLASS ELFCLASS64\n");
  }
  endian_test.s = 0x0102;
  if (memcmp(endian_test.c, "\x01\x02", 2) == 0)
    printf("#define HOST_ELFDATA ELFDATA2MSB\n");
  else if (memcmp(endian_test.c, "\x02\x01", 2) == 0)
    printf("#define HOST_ELFDATA ELFDATA2LSB\n");
  else
    exit(1);
  if ((strcmp(argv[1], "h8300") == 0) || (strcmp(argv[1], "blackfin") == 0))
    printf("#define MODULE_SYMBOL_PREFIX \"_\"\n");
  else
    printf("#define MODULE_SYMBOL_PREFIX \"\"\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e63(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11c1 <main+0x61>
mov    0x2e05(%rip),%rax
mov    (%rax),%edi
lea    0xe44(%rip),%rsi
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    0x2e14(%rip),%rax
mov    (%rax),%edx
mov    0x2e03(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
call   1030 <fread@plt>
mov    0x2df8(%rip),%rcx
cmp    (%rcx),%eax
je     1218 <main+0xb8>
mov    0x2dc1(%rip),%rax
mov    (%rax),%edi
lea    0xe10(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x2c(%rbp)
jmp    1416 <main+0x2b6>
mov    -0x38(%rbp),%rdi
mov    0x2dc5(%rip),%rax
mov    (%rax),%rsi
mov    0x2d83(%rip),%rax
mov    (%rax),%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1266 <main+0x106>
mov    0x2d73(%rip),%rax
mov    (%rax),%edi
lea    0xdda(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0x2c(%rbp)
jmp    1416 <main+0x2b6>
mov    -0x38(%rbp),%rax
mov    0x2d4f(%rip),%rcx
mov    (%rcx),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x82,%eax
je     12af <main+0x14f>
jmp    128b <main+0x12b>
mov    -0x3c(%rbp),%eax
sub    $0x83,%eax
jne    12c0 <main+0x160>
jmp    129e <main+0x13e>
lea    0xd93(%rip),%rdi
call   1040 <printf@plt>
jmp    12ca <main+0x16a>
lea    0xda6(%rip),%rdi
call   1040 <printf@plt>
jmp    12ca <main+0x16a>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x38(%rbp),%rax
mov    0x2cfb(%rip),%rcx
mov    (%rcx),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x40(%rbp)
sub    $0x80,%eax
je     1313 <main+0x1b3>
jmp    12ef <main+0x18f>
mov    -0x40(%rbp),%eax
sub    $0x81,%eax
jne    1324 <main+0x1c4>
jmp    1302 <main+0x1a2>
lea    0xd77(%rip),%rdi
call   1040 <printf@plt>
jmp    132e <main+0x1ce>
lea    0xd8a(%rip),%rdi
call   1040 <printf@plt>
jmp    132e <main+0x1ce>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    0xd93(%rip),%rdi
call   1040 <printf@plt>
movw   $0x102,-0x28(%rbp)
lea    -0x28(%rbp),%rdi
lea    0xd9f(%rip),%rsi
mov    $0x2,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    1370 <main+0x210>
lea    0xd87(%rip),%rdi
call   1040 <printf@plt>
jmp    13af <main+0x24f>
lea    -0x28(%rbp),%rdi
lea    0xd94(%rip),%rsi
mov    $0x2,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    13a0 <main+0x240>
lea    0xd7c(%rip),%rdi
call   1040 <printf@plt>
jmp    13aa <main+0x24a>
mov    $0x1,%edi
call   1080 <exit@plt>
jmp    13af <main+0x24f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd76(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13eb <main+0x28b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13fc <main+0x29c>
lea    0xd51(%rip),%rdi
call   1040 <printf@plt>
jmp    1408 <main+0x2a8>
lea    0xd62(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    0x2e67(%rip),%r12
mov    (%r12),%edx
mov    %rsp,%rbx
mov    %rdx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmp    $0x2,%edi
je     11af <main+0x4f>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
lea    0xe5a(%rip),%rsi
call   1070 <fprintf@plt>
mov    (%r12),%edx
mov    0x2e22(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%r15d
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <fread@plt>
cmp    (%r12),%eax
jne    120b <main+0xab>
mov    0x2e10(%rip),%rax
mov    (%rax),%rsi
mov    0x2dce(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
call   1050 <memcmp@plt>
test   %rax,%rax
je     1225 <main+0xc5>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
lea    0xe27(%rip),%rsi
call   1070 <fprintf@plt>
jmp    131e <main+0x1be>
mov    0x2da6(%rip),%rax
mov    (%rax),%edi
lea    0xdf5(%rip),%rsi
call   1070 <fprintf@plt>
jmp    131e <main+0x1be>
mov    0x2d94(%rip),%rax
mov    (%rax),%rax
mov    (%rbx,%rax,1),%al
cmp    $0x83,%al
je     1247 <main+0xe7>
cmp    $0x82,%al
jne    132e <main+0x1ce>
lea    0xe08(%rip),%rdi
jmp    124e <main+0xee>
lea    0xf0c(%rip),%rdi
call   1030 <puts@plt>
mov    0x2d76(%rip),%rax
mov    (%rax),%rax
mov    (%rbx,%rax,1),%al
cmp    $0x81,%al
je     1275 <main+0x115>
cmp    $0x80,%al
jne    132e <main+0x1ce>
lea    0xdfd(%rip),%rdi
jmp    127c <main+0x11c>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0b(%rip),%rdi
call   1030 <puts@plt>
movw   $0x102,-0x28(%rbp)
lea    0xd9e(%rip),%rsi
lea    -0x28(%rbp),%rdi
mov    $0x2,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
je     12d0 <main+0x170>
lea    0xd87(%rip),%rsi
lea    -0x28(%rbp),%rdi
mov    $0x2,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    132e <main+0x1ce>
lea    0xde6(%rip),%rdi
jmp    12d7 <main+0x177>
lea    0xe3f(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%r14),%rdi
lea    0xd57(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     130f <main+0x1af>
mov    0x8(%r14),%rdi
lea    0xd48(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     130f <main+0x1af>
lea    0xdc8(%rip),%rdi
jmp    1316 <main+0x1b6>
lea    0xddf(%rip),%rdi
call   1030 <puts@plt>
xor    %r15d,%r15d
mov    %r15d,%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
%union.anon = type { i16 }
@EI_NIDENT = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"Error: no arch\0A\00"
@stdin = global i32 0
@.str.1 = [24 x i8] c"Error: input truncated\0A\00"
@ELFMAG = global i8* null
@SELFMAG = global i32 0
@.str.2 = [16 x i8] c"Error: not ELF\0A\00"
@EI_CLASS = global i64 0
@.str.3 = [36 x i8] c"#define KERNEL_ELFCLASS ELFCLASS32\0A\00"
@.str.4 = [36 x i8] c"#define KERNEL_ELFCLASS ELFCLASS64\0A\00"
@EI_DATA = global i64 0
@.str.5 = [36 x i8] c"#define KERNEL_ELFDATA ELFDATA2LSB\0A\00"
@.str.6 = [36 x i8] c"#define KERNEL_ELFDATA ELFDATA2MSB\0A\00"
@.str.7 = [34 x i8] c"#define HOST_ELFCLASS ELFCLASS64\0A\00"
@.str.8 = [3 x i8] c"\01\02\00"
@.str.9 = [34 x i8] c"#define HOST_ELFDATA ELFDATA2MSB\0A\00"
@.str.10 = [3 x i8] c"\02\01\00"
@.str.11 = [34 x i8] c"#define HOST_ELFDATA ELFDATA2LSB\0A\00"
@.str.12 = [6 x i8] c"h8300\00"
@.str.13 = [9 x i8] c"blackfin\00"
@.str.14 = [34 x i8] c"#define MODULE_SYMBOL_PREFIX \22_\22\0A\00"
@.str.15 = [33 x i8] c"#define MODULE_SYMBOL_PREFIX \22\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca %union.anon
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* @EI_NIDENT
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %6
%13 = alloca i8, i64 %11
store i64 %11, i64* %7
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 2
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %16, %2
%20 = load i32, i32* @EI_NIDENT
%21 = load i32, i32* @stdin
%22 = call i32 @fread(i8* %13, i32 1, i32 %20, i32 %21)
%23 = load i32, i32* @EI_NIDENT
%24 = icmp ne i32 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
store i32 1, i32* %9
br label %94
28: ; preds = %19
%29 = load i8*, i8** @ELFMAG
%30 = load i32, i32* @SELFMAG
%31 = call i64 @memcmp(i8* %13, i8* %29, i32 %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = load i32, i32* @stderr
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
store i32 1, i32* %9
br label %94
36: ; preds = %28
%37 = load i64, i64* @EI_CLASS
%38 = getelementptr inbounds i8, i8* %13, i64 %37
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
switch i32 %40, label %45 [
i32 131, label %41
i32 130, label %43
]
41: ; preds = %36
%42 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
br label %47
43: ; preds = %36
%44 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
br label %47
45: ; preds = %36
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %43, %41
%48 = load i64, i64* @EI_DATA
%49 = getelementptr inbounds i8, i8* %13, i64 %48
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
switch i32 %51, label %56 [
i32 129, label %52
i32 128, label %54
]
52: ; preds = %47
%53 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %58
54: ; preds = %47
%55 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
br label %58
56: ; preds = %47
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %54, %52
%59 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%60 = bitcast %union.anon* %8 to i16*
store i16 258, i16* %60
%61 = bitcast %union.anon* %8 to [2 x i8]*
%62 = getelementptr inbounds [2 x i8], [2 x i8]* %61, i64 0, i64 0
%63 = call i64 @memcmp(i8* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %58
%66 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
br label %77
67: ; preds = %58
%68 = bitcast %union.anon* %8 to [2 x i8]*
%69 = getelementptr inbounds [2 x i8], [2 x i8]* %68, i64 0, i64 0
%70 = call i64 @memcmp(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %67
%73 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
br label %76
74: ; preds = %67
%75 = call i32 @exit(i32 1)
unreachable
76: ; preds = %72
br label %77
77: ; preds = %76, %65
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 1
%80 = load i8*, i8** %79
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %89, label %83
83: ; preds = %77
%84 = load i8**, i8*** %5
%85 = getelementptr inbounds i8*, i8** %84, i64 1
%86 = load i8*, i8** %85
%87 = call i64 @strcmp(i8* %86, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %83, %77
%90 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
br label %93
91: ; preds = %83
%92 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
br label %93
93: ; preds = %91, %89
store i32 0, i32* %3
store i32 1, i32* %9
br label %94
94: ; preds = %93, %33, %25
%95 = load i8*, i8** %6
%96 = load i32, i32* %3
ret i32 %96
}

LLVM IR (-O2):
%union.anon = type { i16 }
@EI_NIDENT = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"Error: no arch\0A\00"
@stdin = global i32 0
@.str.1 = [24 x i8] c"Error: input truncated\0A\00"
@ELFMAG = global i8* null
@SELFMAG = global i32 0
@.str.2 = [16 x i8] c"Error: not ELF\0A\00"
@EI_CLASS = global i64 0
@EI_DATA = global i64 0
@.str.8 = [3 x i8] c"\01\02\00"
@.str.10 = [3 x i8] c"\02\01\00"
@.str.12 = [6 x i8] c"h8300\00"
@.str.13 = [9 x i8] c"blackfin\00"
@str = [35 x i8] c"#define KERNEL_ELFCLASS ELFCLASS64\00"
@str.16 = [35 x i8] c"#define KERNEL_ELFDATA ELFDATA2MSB\00"
@str.17 = [33 x i8] c"#define HOST_ELFCLASS ELFCLASS64\00"
@str.18 = [33 x i8] c"#define HOST_ELFDATA ELFDATA2LSB\00"
@str.19 = [32 x i8] c"#define MODULE_SYMBOL_PREFIX \22\22\00"
@str.20 = [33 x i8] c"#define MODULE_SYMBOL_PREFIX \22_\22\00"
@str.21 = [33 x i8] c"#define HOST_ELFDATA ELFDATA2MSB\00"
@str.22 = [35 x i8] c"#define KERNEL_ELFDATA ELFDATA2LSB\00"
@str.23 = [35 x i8] c"#define KERNEL_ELFCLASS ELFCLASS32\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %union.anon
%4 = load i32, i32* @EI_NIDENT
%5 = zext i32 %4 to i64
%6 = alloca i8, i64 %5
%7 = bitcast %union.anon* %3 to i8*
%8 = icmp eq i32 %0, 2
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EI_NIDENT
br label %13
13: ; preds = %9, %2
%14 = phi i32 [ %12, %9 ], [ %4, %2 ]
%15 = load i32, i32* @stdin
%16 = call i32 @fread(i8* %6, i32 1, i32 %14, i32 %15)
%17 = load i32, i32* @EI_NIDENT
%18 = icmp eq i32 %16, %17
br i1 %18, label %22, label %19
19: ; preds = %13
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %73
22: ; preds = %13
%23 = load i8*, i8** @ELFMAG
%24 = load i32, i32* @SELFMAG
%25 = call i64 @memcmp(i8* %6, i8* %23, i32 %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %22
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %73
30: ; preds = %22
%31 = load i64, i64* @EI_CLASS
%32 = getelementptr inbounds i8, i8* %6, i64 %31
%33 = load i8, i8* %32
switch i8 %33, label %35 [
i8 -125, label %37
i8 -126, label %34
]
34: ; preds = %30
br label %37
35: ; preds = %30
%36 = call i32 @exit(i32 1)
unreachable
37: ; preds = %30, %34
%38 = phi i8* [ getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0), %34 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @str.23, i64 0, i64 0), %30 ]
%39 = call i32 @puts(i8* dereferenceable(1) %38)
%40 = load i64, i64* @EI_DATA
%41 = getelementptr inbounds i8, i8* %6, i64 %40
%42 = load i8, i8* %41
switch i8 %42, label %44 [
i8 -127, label %46
i8 -128, label %43
]
43: ; preds = %37
br label %46
44: ; preds = %37
%45 = call i32 @exit(i32 1)
unreachable
46: ; preds = %37, %43
%47 = phi i8* [ getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0), %43 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @str.22, i64 0, i64 0), %37 ]
%48 = call i32 @puts(i8* dereferenceable(1) %47)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.17, i64 0, i64 0))
%50 = getelementptr inbounds %union.anon, %union.anon* %3, i64 0, i32 0
store i16 258, i16* %50
%51 = call i64 @memcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%52 = icmp eq i64 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %46
%54 = call i64 @memcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%55 = icmp eq i64 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %53
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %53, %46
%59 = phi i8* [ getelementptr inbounds ([33 x i8], [33 x i8]* @str.21, i64 0, i64 0), %46 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @str.18, i64 0, i64 0), %53 ]
%60 = call i32 @puts(i8* dereferenceable(1) %59)
%61 = getelementptr inbounds i8*, i8** %1, i64 1
%62 = load i8*, i8** %61
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %69, label %65
65: ; preds = %58
%66 = load i8*, i8** %61
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %65, %58
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.20, i64 0, i64 0))
br label %73
71: ; preds = %65
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.19, i64 0, i64 0))
br label %73
73: ; preds = %69, %71, %27, %19
%74 = phi i32 [ 1, %19 ], [ 1, %27 ], [ 0, %71 ], [ 0, %69 ]
ret i32 %74
}