#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 */
struct DNAword {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ searchTable(char, struct DNAword *);
int /*<<< orphan*/ setIntron(struct DNAword *);
int /*<<< orphan*/ setSecondChar(struct DNAword *);
void findCharacter(char t, struct DNAword *word, char *sentence) {
  if (t == 0)
    setIntron(word);
  else if (t == 1)
    setSecondChar(word);
  else if ((t < 93) && (t > 31))
    searchTable(t, word);
  else
    printf("Couldn't find in table\n");
}


x86 assembly (clang, -O0):
<findCharacter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x0,%eax
jne    1171 <findCharacter+0x31>
mov    -0x10(%rbp),%rdi
call   1050 <setIntron@plt>
jmp    11d0 <findCharacter+0x90>
movsbl -0x1(%rbp),%eax
cmp    $0x1,%eax
jne    118c <findCharacter+0x4c>
mov    -0x10(%rbp),%rdi
call   1030 <setSecondChar@plt>
jmp    11cb <findCharacter+0x8b>
movsbl -0x1(%rbp),%eax
cmp    $0x5d,%eax
jge    11ba <findCharacter+0x7a>
movsbl -0x1(%rbp),%eax
cmp    $0x1f,%eax
jle    11ba <findCharacter+0x7a>
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1060 <searchTable@plt>
jmp    11c6 <findCharacter+0x86>
lea    0xe3f(%rip),%rdi
call   1040 <printf@plt>
jmp    11cb <findCharacter+0x8b>
jmp    11d0 <findCharacter+0x90>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<findCharacter>:
cmp    $0x1,%dil
je     1153 <findCharacter+0x13>
test   %dil,%dil
jne    115b <findCharacter+0x1b>
mov    %rsi,%rdi
jmp    1050 <setIntron@plt>
mov    %rsi,%rdi
jmp    1040 <setSecondChar@plt>
lea    -0x20(%rdi),%eax
cmp    $0x3c,%al
ja     116b <findCharacter+0x2b>
movsbl %dil,%edi
jmp    1060 <searchTable@plt>
lea    0xe8e(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
%struct.DNAword = type { i32 }
@.str = [24 x i8] c"Couldn't find in table\0A\00"
define void @findCharacter(i8 signext %0, %struct.DNAword* %1, i8* %2) {
%4 = alloca i8
%5 = alloca %struct.DNAword*
%6 = alloca i8*
store i8 %0, i8* %4
store %struct.DNAword* %1, %struct.DNAword** %5
store i8* %2, i8** %6
%7 = load i8, i8* %4
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load %struct.DNAword*, %struct.DNAword** %5
%12 = call i32 @setIntron(%struct.DNAword* %11)
br label %36
13: ; preds = %3
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load %struct.DNAword*, %struct.DNAword** %5
%19 = call i32 @setSecondChar(%struct.DNAword* %18)
br label %35
20: ; preds = %13
%21 = load i8, i8* %4
%22 = sext i8 %21 to i32
%23 = icmp slt i32 %22, 93
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = load i8, i8* %4
%26 = sext i8 %25 to i32
%27 = icmp sgt i32 %26, 31
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i8, i8* %4
%30 = load %struct.DNAword*, %struct.DNAword** %5
%31 = call i32 @searchTable(i8 signext %29, %struct.DNAword* %30)
br label %34
32: ; preds = %24, %20
%33 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %34
34: ; preds = %32, %28
br label %35
35: ; preds = %34, %17
br label %36
36: ; preds = %35, %10
ret void
}

LLVM IR (-O2):
%struct.DNAword = type { i32 }
@str = [23 x i8] c"Couldn't find in table\00"
define void @findCharacter(i8 signext %0, %struct.DNAword* %1, i8* nocapture readnone %2) {
switch i8 %0, label %8 [
i8 0, label %4
i8 1, label %6
]
4: ; preds = %3
%5 = tail call i32 @setIntron(%struct.DNAword* %1)
br label %15
6: ; preds = %3
%7 = tail call i32 @setSecondChar(%struct.DNAword* %1)
br label %15
8: ; preds = %3
%9 = add i8 %0, -32
%10 = icmp ult i8 %9, 61
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @searchTable(i8 signext %0, %struct.DNAword* %1)
br label %15
13: ; preds = %8
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
br label %15
15: ; preds = %6, %13, %11, %4
ret void
}