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

/* Variables and functions */
int /*<<< orphan*/ findCharacter(char, struct DNAword *, char *);
int /*<<< orphan*/ printTranslation(char *, struct content *);
int /*<<< orphan*/ translateWord(struct DNAcontent *, struct DNAword *, char *);
void translateCharacter(struct DNAcontent *order, struct content *con,
                        struct DNAword *word, char t) {
  char sentence[4];
  findCharacter(t, word, sentence);
  translateWord(order, word, sentence);
  sentence[3] = '\0';
  printTranslation(sentence, con);
}


x86 assembly (clang, -O0):
<translateCharacter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %cl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
mov    -0x18(%rbp),%rsi
lea    -0x1d(%rbp),%rdx
movsbl %al,%edi
call   1050 <findCharacter@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1d(%rbp),%rdx
call   1030 <translateWord@plt>
movb   $0x0,-0x1a(%rbp)
lea    -0x1d(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <printTranslation@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translateCharacter>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
lea    0x4(%rsp),%r12
mov    %ecx,%edi
mov    %rdx,%rsi
mov    %r12,%rdx
call   1050 <findCharacter@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1030 <translateWord@plt>
movb   $0x0,0x7(%rsp)
mov    %r12,%rdi
mov    %r14,%rsi
call   1040 <printTranslation@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.DNAcontent = type { i32 }
%struct.content = type { i32 }
%struct.DNAword = type { i32 }
define void @translateCharacter(%struct.DNAcontent* %0, %struct.content* %1, %struct.DNAword* %2, i8 signext %3) {
%5 = alloca %struct.DNAcontent*
%6 = alloca %struct.content*
%7 = alloca %struct.DNAword*
%8 = alloca i8
%9 = alloca [4 x i8]
store %struct.DNAcontent* %0, %struct.DNAcontent** %5
store %struct.content* %1, %struct.content** %6
store %struct.DNAword* %2, %struct.DNAword** %7
store i8 %3, i8* %8
%10 = load i8, i8* %8
%11 = load %struct.DNAword*, %struct.DNAword** %7
%12 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%13 = call i32 @findCharacter(i8 signext %10, %struct.DNAword* %11, i8* %12)
%14 = load %struct.DNAcontent*, %struct.DNAcontent** %5
%15 = load %struct.DNAword*, %struct.DNAword** %7
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%17 = call i32 @translateWord(%struct.DNAcontent* %14, %struct.DNAword* %15, i8* %16)
%18 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 3
store i8 0, i8* %18
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%20 = load %struct.content*, %struct.content** %6
%21 = call i32 @printTranslation(i8* %19, %struct.content* %20)
ret void
}

LLVM IR (-O2):
%struct.DNAcontent = type { i32 }
%struct.content = type { i32 }
%struct.DNAword = type { i32 }
define void @translateCharacter(%struct.DNAcontent* %0, %struct.content* %1, %struct.DNAword* %2, i8 signext %3) {
%5 = alloca [4 x i8]
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%7 = call i32 @findCharacter(i8 signext %3, %struct.DNAword* %2, i8* %6)
%8 = call i32 @translateWord(%struct.DNAcontent* %0, %struct.DNAword* %2, i8* %6)
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 3
store i8 0, i8* %9
%10 = call i32 @printTranslation(i8* %6, %struct.content* %1)
ret void
}