#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*/ 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);
  if (t == 1)
    setSecondChar(word);
  if ((t < 93) && (t > 32))
    searchTable(t, word);
}


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    115c <findCharacter+0x2c>
mov    -0x10(%rbp),%rdi
call   1040 <setIntron@plt>
movsbl -0x1(%rbp),%eax
cmp    $0x1,%eax
jne    1172 <findCharacter+0x42>
mov    -0x10(%rbp),%rdi
call   1030 <setSecondChar@plt>
movsbl -0x1(%rbp),%eax
cmp    $0x5d,%eax
jge    119b <findCharacter+0x6b>
movsbl -0x1(%rbp),%eax
cmp    $0x20,%eax
jle    119b <findCharacter+0x6b>
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1050 <searchTable@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<findCharacter>:
cmp    $0x1,%dil
je     1143 <findCharacter+0x13>
test   %dil,%dil
jne    114b <findCharacter+0x1b>
mov    %rsi,%rdi
jmp    1040 <setIntron@plt>
mov    %rsi,%rdi
jmp    1030 <setSecondChar@plt>
lea    -0x21(%rdi),%eax
cmp    $0x3b,%al
ja     115b <findCharacter+0x2b>
movsbl %dil,%edi
jmp    1050 <searchTable@plt>
ret

LLVM IR (-O0):
%struct.DNAword = type { i32 }
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 %13
13: ; preds = %10, %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 %20
20: ; preds = %17, %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, 32
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 %32
32: ; preds = %28, %24, %20
ret void
}

LLVM IR (-O2):
%struct.DNAword = type { i32 }
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 %13
6: ; preds = %3
%7 = tail call i32 @setSecondChar(%struct.DNAword* %1)
br label %13
8: ; preds = %3
%9 = add i8 %0, -33
%10 = icmp ult i8 %9, 60
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @searchTable(i8 signext %0, %struct.DNAword* %1)
br label %13
13: ; preds = %6, %4, %11, %8
ret void
}