#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 *, char *, int, int, char);
void test_token_ped(char token, int j, int i, char *input_file) {
  if (!(token == '0' || token == '1' || token == '2' || token == '3' ||
        token == '4' || token == 'A' || token == 'C' || token == 'T' ||
        token == 'G')) {
    printf("Error: in file %s, line %d, one allele of SNP %d is '%c'"
           " and not 0, 1, 2, 3, 4, A, C, T, or G.\n\n",
           input_file, i, j, token);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<test_token_ped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x30,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x31,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x32,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x33,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x34,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x43,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x54,%eax
je     11d2 <test_token_ped+0xb2>
movsbl -0x1(%rbp),%eax
cmp    $0x47,%eax
je     11d2 <test_token_ped+0xb2>
mov    -0x18(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe42(%rip),%rdi
movsbl -0x1(%rbp),%r8d
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_token_ped>:
mov    %esi,%r9d
lea    -0x30(%rdi),%esi
cmp    $0x24,%sil
ja     1141 <test_token_ped+0x21>
movzbl %sil,%esi
movabs $0x10008a001f,%rax
bt     %rsi,%rax
jae    1141 <test_token_ped+0x21>
ret
push   %rax
movsbl %dil,%r8d
lea    0xeb3(%rip),%rdi
mov    %rcx,%rsi
mov    %r9d,%ecx
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [97 x i8] c"Error: in file %s, line %d, one allele of SNP %d is '%c' and not 0, 1, 2, 3, 4, A, C, T, or G.\0A\0A\00"
define void @test_token_ped(i8 signext %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i8
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
store i8 %0, i8* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i8, i8* %5
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 48
br i1 %11, label %51, label %12
12: ; preds = %4
%13 = load i8, i8* %5
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 49
br i1 %15, label %51, label %16
16: ; preds = %12
%17 = load i8, i8* %5
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 50
br i1 %19, label %51, label %20
20: ; preds = %16
%21 = load i8, i8* %5
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 51
br i1 %23, label %51, label %24
24: ; preds = %20
%25 = load i8, i8* %5
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 52
br i1 %27, label %51, label %28
28: ; preds = %24
%29 = load i8, i8* %5
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 65
br i1 %31, label %51, label %32
32: ; preds = %28
%33 = load i8, i8* %5
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 67
br i1 %35, label %51, label %36
36: ; preds = %32
%37 = load i8, i8* %5
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 84
br i1 %39, label %51, label %40
40: ; preds = %36
%41 = load i8, i8* %5
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 71
br i1 %43, label %51, label %44
44: ; preds = %40
%45 = load i8*, i8** %8
%46 = load i32, i32* %7
%47 = load i32, i32* %6
%48 = load i8, i8* %5
%49 = call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str, i64 0, i64 0), i8* %45, i32 %46, i32 %47, i8 signext %48)
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %40, %36, %32, %28, %24, %20, %16, %12, %4
ret void
}

LLVM IR (-O2):
@.str = [97 x i8] c"Error: in file %s, line %d, one allele of SNP %d is '%c' and not 0, 1, 2, 3, 4, A, C, T, or G.\0A\0A\00"
define void @test_token_ped(i8 signext %0, i32 %1, i32 %2, i8* %3) {
switch i8 %0, label %5 [
i8 84, label %8
i8 71, label %8
i8 67, label %8
i8 65, label %8
i8 52, label %8
i8 51, label %8
i8 50, label %8
i8 49, label %8
i8 48, label %8
]
5: ; preds = %4
%6 = tail call i32 @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str, i64 0, i64 0), i8* %3, i32 %2, i32 %1, i8 signext %0)
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4
ret void
}