#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*/ printf(char *, char, char);
int /*<<< orphan*/ translateWord(struct DNAcontent *, struct DNAword *, char *);
void translateCharacter(struct DNAcontent *order, struct content *con,
                        struct DNAword *word, char t) {
  char sentence[4];
  printf("%d : %c - ", t, t);
  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
lea    0xe9d(%rip),%rdi
movsbl %al,%esi
movsbl -0x19(%rbp),%edx
call   1030 <printf@plt>
mov    -0x19(%rbp),%al
mov    -0x18(%rbp),%rsi
lea    -0x1d(%rbp),%rdx
movsbl %al,%edi
call   1060 <findCharacter@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1d(%rbp),%rdx
call   1040 <translateWord@plt>
movb   $0x0,-0x1a(%rbp)
lea    -0x1d(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <printTranslation@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translateCharacter>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %ecx,%ebx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r12
lea    0xea1(%rip),%rdi
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <printf@plt>
lea    0xc(%rsp),%r13
mov    %ebx,%edi
mov    %r14,%rsi
mov    %r13,%rdx
call   1060 <findCharacter@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
call   1040 <translateWord@plt>
movb   $0x0,0xf(%rsp)
mov    %r13,%rdi
mov    %r15,%rsi
call   1050 <printTranslation@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.DNAcontent = type { i32 }
%struct.content = type { i32 }
%struct.DNAword = type { i32 }
@.str = [11 x i8] c"%d : %c - \00"
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 i8, i8* %8
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext %10, i8 signext %11)
%13 = load i8, i8* %8
%14 = load %struct.DNAword*, %struct.DNAword** %7
%15 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%16 = call i32 @findCharacter(i8 signext %13, %struct.DNAword* %14, i8* %15)
%17 = load %struct.DNAcontent*, %struct.DNAcontent** %5
%18 = load %struct.DNAword*, %struct.DNAword** %7
%19 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%20 = call i32 @translateWord(%struct.DNAcontent* %17, %struct.DNAword* %18, i8* %19)
%21 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 3
store i8 0, i8* %21
%22 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%23 = load %struct.content*, %struct.content** %6
%24 = call i32 @printTranslation(i8* %22, %struct.content* %23)
ret void
}

LLVM IR (-O2):
%struct.DNAcontent = type { i32 }
%struct.content = type { i32 }
%struct.DNAword = type { i32 }
@.str = [11 x i8] c"%d : %c - \00"
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 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext %3, i8 signext %3)
%8 = call i32 @findCharacter(i8 signext %3, %struct.DNAword* %2, i8* %6)
%9 = call i32 @translateWord(%struct.DNAcontent* %0, %struct.DNAword* %2, i8* %6)
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 3
store i8 0, i8* %10
%11 = call i32 @printTranslation(i8* %6, %struct.content* %1)
ret void
}