#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*/ free(char *const);
int /*<<< orphan*/ printf(char *, char *const, char *const, char *const,
                          char *const);
char *searchWord(char const *const, int);
int main() {
  const char *const str = "dict.txt";
  char *const first = searchWord(str, 33609);
  char *const second = searchWord(str, 320115);
  char *const third = searchWord(str, 194240);
  char *const fourth = searchWord(str, 211523);
  printf("%s %s %s %s!\n", first, second, third, fourth);
  free(first);
  free(second);
  free(third);
  free(fourth);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xeaf(%rip),%rdi
mov    $0x8349,%esi
call   1050 <searchWord@plt>
mov    %rax,-0x18(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x4e273,%esi
call   1050 <searchWord@plt>
mov    %rax,-0x20(%rbp)
lea    0xe85(%rip),%rdi
mov    $0x2f6c0,%esi
call   1050 <searchWord@plt>
mov    %rax,-0x28(%rbp)
lea    0xe70(%rip),%rdi
mov    $0x33a43,%esi
call   1050 <searchWord@plt>
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
lea    0xe54(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xec0(%rip),%r14
mov    %r14,%rdi
mov    $0x8349,%esi
call   1050 <searchWord@plt>
mov    %rax,%r15
mov    %r14,%rdi
mov    $0x4e273,%esi
call   1050 <searchWord@plt>
mov    %rax,%r12
mov    %r14,%rdi
mov    $0x2f6c0,%esi
call   1050 <searchWord@plt>
mov    %rax,%r13
mov    %r14,%rdi
mov    $0x33a43,%esi
call   1050 <searchWord@plt>
mov    %rax,%rbx
lea    0xe82(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rax,%r8
call   1040 <printf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"dict.txt\00"
@.str.1 = [14 x i8] c"%s %s %s %s!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8** %2
%7 = call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i32 33609)
store i8* %7, i8** %3
%8 = call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i32 320115)
store i8* %8, i8** %4
%9 = call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i32 194240)
store i8* %9, i8** %5
%10 = call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i32 0, i32 0), i32 211523)
store i8* %10, i8** %6
%11 = load i8*, i8** %3
%12 = load i8*, i8** %4
%13 = load i8*, i8** %5
%14 = load i8*, i8** %6
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* %14)
%16 = load i8*, i8** %3
%17 = call i32 @free(i8* %16)
%18 = load i8*, i8** %4
%19 = call i32 @free(i8* %18)
%20 = load i8*, i8** %5
%21 = call i32 @free(i8* %20)
%22 = load i8*, i8** %6
%23 = call i32 @free(i8* %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"dict.txt\00"
@.str.1 = [14 x i8] c"%s %s %s %s!\0A\00"
define i32 @main() {
%1 = tail call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 33609)
%2 = tail call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 320115)
%3 = tail call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 194240)
%4 = tail call i8* @searchWord(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 211523)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %1, i8* %2, i8* %3, i8* %4)
%6 = tail call i32 @free(i8* %1)
%7 = tail call i32 @free(i8* %2)
%8 = tail call i32 @free(i8* %3)
%9 = tail call i32 @free(i8* %4)
ret i32 0
}