#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*/ assert(int /*<<< orphan*/);
void mapCharToCodeDNA(unsigned int *codeA, unsigned int *codeC,
                      unsigned int *codeG, unsigned int *codeT,
                      unsigned int *valid, char in) {
  switch (in) {
  case 'a':
  case 'A':
    *codeA = 1u;
    *codeC = 0u;
    *codeG = 0u;
    *codeT = 0u;
    *valid = 1u;
    break;
  case 'c':
  case 'C':
    *codeA = 0u;
    *codeC = 1u;
    *codeG = 0u;
    *codeT = 0u;
    *valid = 1u;
    break;
  case 'g':
  case 'G':
    *codeA = 0u;
    *codeC = 0u;
    *codeG = 1u;
    *codeT = 0u;
    *valid = 1u;
    break;
  case 't':
  case 'T':
    *codeA = 0u;
    *codeC = 0u;
    *codeG = 0u;
    *codeT = 1u;
    *valid = 1u;
    break;
  case '-':
    *codeA = 0u;
    *codeC = 0u;
    *codeG = 0u;
    *codeT = 0u;
    *valid = 0u;
    break;
  case 'N':
    *codeA = 0u;
    *codeC = 0u;
    *codeG = 0u;
    *codeT = 0u;
    *valid = 0u;
    break;
  default:
    assert(0);
  }
}


x86 assembly (clang, -O0):
<mapCharToCodeDNA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %r9b,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %al,-0x29(%rbp)
movsbl -0x29(%rbp),%eax
add    $0xffffffd3,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x47,%eax
ja     12a6 <mapCharToCodeDNA+0x196>
mov    -0x38(%rbp),%rax
lea    0xead(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
jmp    12ad <mapCharToCodeDNA+0x19d>
xor    %edi,%edi
call   1030 <assert@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mapCharToCodeDNA>:
add    $0xffffffd3,%r9d
cmp    $0x47,%r9d
ja     11b0 <mapCharToCodeDNA+0xa0>
lea    0xedb(%rip),%r10
movslq (%r10,%r9,4),%rax
add    %r10,%rax
jmp    *%rax
movl   $0x1,(%rdi)
movl   $0x0,(%rsi)
jmp    1148 <mapCharToCodeDNA+0x38>
movl   $0x0,(%rdi)
movl   $0x1,(%rsi)
movl   $0x0,(%rdx)
jmp    1162 <mapCharToCodeDNA+0x52>
movl   $0x0,(%rdi)
movl   $0x0,(%rsi)
movl   $0x1,(%rdx)
movl   $0x0,(%rcx)
movl   $0x1,(%r8)
ret
movl   $0x0,(%rdi)
movl   $0x0,(%rsi)
movl   $0x0,(%rdx)
movl   $0x0,(%rcx)
movl   $0x0,(%r8)
ret
movl   $0x0,(%rdi)
movl   $0x0,(%rsi)
movl   $0x0,(%rdx)
movl   $0x1,(%rcx)
movl   $0x1,(%r8)
ret
xor    %edi,%edi
jmp    1030 <assert@plt>

LLVM IR (-O0):
define void @mapCharToCodeDNA(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i8 signext %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i8 %5, i8* %12
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
switch i32 %14, label %51 [
i32 97, label %15
i32 65, label %15
i32 99, label %21
i32 67, label %21
i32 103, label %27
i32 71, label %27
i32 116, label %33
i32 84, label %33
i32 45, label %39
i32 78, label %45
]
15: ; preds = %6, %6
%16 = load i32*, i32** %7
store i32 1, i32* %16
%17 = load i32*, i32** %8
store i32 0, i32* %17
%18 = load i32*, i32** %9
store i32 0, i32* %18
%19 = load i32*, i32** %10
store i32 0, i32* %19
%20 = load i32*, i32** %11
store i32 1, i32* %20
br label %53
21: ; preds = %6, %6
%22 = load i32*, i32** %7
store i32 0, i32* %22
%23 = load i32*, i32** %8
store i32 1, i32* %23
%24 = load i32*, i32** %9
store i32 0, i32* %24
%25 = load i32*, i32** %10
store i32 0, i32* %25
%26 = load i32*, i32** %11
store i32 1, i32* %26
br label %53
27: ; preds = %6, %6
%28 = load i32*, i32** %7
store i32 0, i32* %28
%29 = load i32*, i32** %8
store i32 0, i32* %29
%30 = load i32*, i32** %9
store i32 1, i32* %30
%31 = load i32*, i32** %10
store i32 0, i32* %31
%32 = load i32*, i32** %11
store i32 1, i32* %32
br label %53
33: ; preds = %6, %6
%34 = load i32*, i32** %7
store i32 0, i32* %34
%35 = load i32*, i32** %8
store i32 0, i32* %35
%36 = load i32*, i32** %9
store i32 0, i32* %36
%37 = load i32*, i32** %10
store i32 1, i32* %37
%38 = load i32*, i32** %11
store i32 1, i32* %38
br label %53
39: ; preds = %6
%40 = load i32*, i32** %7
store i32 0, i32* %40
%41 = load i32*, i32** %8
store i32 0, i32* %41
%42 = load i32*, i32** %9
store i32 0, i32* %42
%43 = load i32*, i32** %10
store i32 0, i32* %43
%44 = load i32*, i32** %11
store i32 0, i32* %44
br label %53
45: ; preds = %6
%46 = load i32*, i32** %7
store i32 0, i32* %46
%47 = load i32*, i32** %8
store i32 0, i32* %47
%48 = load i32*, i32** %9
store i32 0, i32* %48
%49 = load i32*, i32** %10
store i32 0, i32* %49
%50 = load i32*, i32** %11
store i32 0, i32* %50
br label %53
51: ; preds = %6
%52 = call i32 @assert(i32 0)
br label %53
53: ; preds = %51, %45, %39, %33, %27, %21, %15
ret void
}

LLVM IR (-O2):
define void @mapCharToCodeDNA(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i8 signext %5) {
%7 = sext i8 %5 to i32
switch i32 %7, label %14 [
i32 97, label %8
i32 65, label %8
i32 99, label %9
i32 67, label %9
i32 103, label %10
i32 71, label %10
i32 116, label %11
i32 84, label %11
i32 45, label %12
i32 78, label %13
]
8: ; preds = %6, %6
store i32 1, i32* %0
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 1, i32* %4
br label %16
9: ; preds = %6, %6
store i32 0, i32* %0
store i32 1, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 1, i32* %4
br label %16
10: ; preds = %6, %6
store i32 0, i32* %0
store i32 0, i32* %1
store i32 1, i32* %2
store i32 0, i32* %3
store i32 1, i32* %4
br label %16
11: ; preds = %6, %6
store i32 0, i32* %0
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
store i32 1, i32* %4
br label %16
12: ; preds = %6
store i32 0, i32* %0
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
br label %16
13: ; preds = %6
store i32 0, i32* %0
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
br label %16
14: ; preds = %6
%15 = tail call i32 @assert(i32 0)
br label %16
16: ; preds = %14, %13, %12, %11, %10, %9, %8
ret void
}