#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*/ awesome(char *, char *);
int /*<<< orphan*/ beauce(int, char *);
int /*<<< orphan*/ getAnswer(int, char);
int /*<<< orphan*/ montreal(int, char *, char);
int /*<<< orphan*/ ottawa();
int /*<<< orphan*/ print(int volatile, int, char, char *, int *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ quebec(int volatile);
int /*<<< orphan*/ rimouski(int, float);
int /*<<< orphan*/ sherbrook(int, char *, char, int *);
int /*<<< orphan*/ sleep(int);
int main(int argc, char **argv) {
  int i, var1 = 18, var2 = 19;
  volatile int a = 53;
  float b = 0.0f;
  printf("suspect Starting\n");
  sleep(2);
  for (i = 0; i < 3; ++i) {
    ottawa();
    print(a, 86, 'c', "Hello World", &var1);
    printf("b\n");
    quebec(a);
    getAnswer(18 + i, 'a');
    awesome("Good Morning", "Good Night");
    beauce(24, "Life is like a box of chocolates");
    montreal(24, "Life is like a box of chocolates", 'p');
    sherbrook(24, "Life is like a box of chocolates", 'p', &var1);
    rimouski(18, b);
    sleep(1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x12,-0x18(%rbp)
movl   $0x13,-0x1c(%rbp)
movl   $0x35,-0x20(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
lea    0xe16(%rip),%rdi
call   1050 <printf@plt>
mov    $0x2,%edi
call   10d0 <sleep@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    12cd <main+0x11d>
mov    $0x0,%al
call   10b0 <ottawa@plt>
mov    -0x20(%rbp),%edi
mov    $0x56,%esi
mov    $0x63,%edx
lea    0xded(%rip),%rcx
lea    -0x18(%rbp),%r8
call   1070 <print@plt>
lea    0xde9(%rip),%rdi
call   1050 <printf@plt>
mov    -0x20(%rbp),%edi
call   1040 <quebec@plt>
mov    -0x14(%rbp),%edi
add    $0x12,%edi
mov    $0x61,%esi
call   1090 <getAnswer@plt>
lea    0xdc8(%rip),%rdi
lea    0xdce(%rip),%rsi
call   10c0 <awesome@plt>
mov    $0x18,%edi
lea    0xdc8(%rip),%rsi
call   1060 <beauce@plt>
mov    $0x18,%edi
lea    0xdb7(%rip),%rsi
mov    $0x70,%edx
call   1030 <montreal@plt>
mov    $0x18,%edi
lea    0xda1(%rip),%rsi
mov    $0x70,%edx
lea    -0x18(%rbp),%rcx
call   1080 <sherbrook@plt>
movss  -0x24(%rbp),%xmm0
mov    $0x12,%edi
call   10a0 <rimouski@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1200 <main+0x50>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x12,0x4(%rsp)
movl   $0x35,(%rsp)
lea    0xe74(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   10d0 <sleep@plt>
xor    %eax,%eax
call   10b0 <ottawa@plt>
mov    (%rsp),%edi
lea    0xe0f(%rip),%r15
lea    0x4(%rsp),%r14
mov    $0x56,%esi
mov    $0x63,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1070 <print@plt>
lea    0xe44(%rip),%r12
mov    %r12,%rdi
call   1050 <puts@plt>
mov    (%rsp),%edi
call   1040 <quebec@plt>
mov    $0x12,%edi
mov    $0x61,%esi
call   1090 <getAnswer@plt>
lea    0xdd4(%rip),%r13
lea    0xdda(%rip),%rbp
mov    %r13,%rdi
mov    %rbp,%rsi
call   10c0 <awesome@plt>
lea    0xdd3(%rip),%rbx
mov    $0x18,%edi
mov    %rbx,%rsi
call   1060 <beauce@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
call   1030 <montreal@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
mov    %r14,%rcx
call   1080 <sherbrook@plt>
xorps  %xmm0,%xmm0
mov    $0x12,%edi
call   10a0 <rimouski@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
xor    %eax,%eax
call   10b0 <ottawa@plt>
mov    (%rsp),%edi
mov    $0x56,%esi
mov    $0x63,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1070 <print@plt>
mov    %r12,%rdi
call   1050 <puts@plt>
mov    (%rsp),%edi
call   1040 <quebec@plt>
mov    $0x13,%edi
mov    $0x61,%esi
call   1090 <getAnswer@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   10c0 <awesome@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
call   1060 <beauce@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
call   1030 <montreal@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
mov    %r14,%rcx
call   1080 <sherbrook@plt>
xorps  %xmm0,%xmm0
mov    $0x12,%edi
call   10a0 <rimouski@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
xor    %eax,%eax
call   10b0 <ottawa@plt>
mov    (%rsp),%edi
mov    $0x56,%esi
mov    $0x63,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1070 <print@plt>
mov    %r12,%rdi
call   1050 <puts@plt>
mov    (%rsp),%edi
call   1040 <quebec@plt>
mov    $0x14,%edi
mov    $0x61,%esi
call   1090 <getAnswer@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   10c0 <awesome@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
call   1060 <beauce@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
call   1030 <montreal@plt>
mov    $0x18,%edi
mov    %rbx,%rsi
mov    $0x70,%edx
mov    %r14,%rcx
call   1080 <sherbrook@plt>
xorps  %xmm0,%xmm0
mov    $0x12,%edi
call   10a0 <rimouski@plt>
mov    $0x1,%edi
call   10d0 <sleep@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"suspect Starting\0A\00"
@.str.1 = [12 x i8] c"Hello World\00"
@.str.2 = [3 x i8] c"b\0A\00"
@.str.3 = [13 x i8] c"Good Morning\00"
@.str.4 = [11 x i8] c"Good Night\00"
@.str.5 = [33 x i8] c"Life is like a box of chocolates\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 18, i32* %7
store i32 19, i32* %8
store volatile i32 53, i32* %9
store float 0.000000e+00, float* %10
%11 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @sleep(i32 2)
store i32 0, i32* %6
br label %13
13: ; preds = %33, %2
%14 = load i32, i32* %6
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %36
16: ; preds = %13
%17 = call i32 (...) @ottawa()
%18 = load volatile i32, i32* %9
%19 = call i32 @print(i32 %18, i32 86, i8 signext 99, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%20 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%21 = load volatile i32, i32* %9
%22 = call i32 @quebec(i32 %21)
%23 = load i32, i32* %6
%24 = add nsw i32 18, %23
%25 = call i32 @getAnswer(i32 %24, i8 signext 97)
%26 = call i32 @awesome(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 @beauce(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%28 = call i32 @montreal(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112)
%29 = call i32 @sherbrook(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112, i32* %7)
%30 = load float, float* %10
%31 = call i32 @rimouski(i32 18, float %30)
%32 = call i32 @sleep(i32 1)
br label %33
33: ; preds = %16
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %13
36: ; preds = %13
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"Hello World\00"
@.str.3 = [13 x i8] c"Good Morning\00"
@.str.4 = [11 x i8] c"Good Night\00"
@.str.5 = [33 x i8] c"Life is like a box of chocolates\00"
@str = [17 x i8] c"suspect Starting\00"
@str.6 = [2 x i8] c"b\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
store i32 18, i32* %3
%6 = bitcast i32* %4 to i8*
store volatile i32 53, i32* %4
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @sleep(i32 2)
%9 = call i32 (...) @ottawa()
%10 = load volatile i32, i32* %4
%11 = call i32 @print(i32 %10, i32 86, i8 signext 99, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
%13 = load volatile i32, i32* %4
%14 = call i32 @quebec(i32 %13)
%15 = call i32 @getAnswer(i32 18, i8 signext 97)
%16 = call i32 @awesome(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @beauce(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 @montreal(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112)
%19 = call i32 @sherbrook(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112, i32* %3)
%20 = call i32 @rimouski(i32 18, float 0.000000e+00)
%21 = call i32 @sleep(i32 1)
%22 = call i32 (...) @ottawa()
%23 = load volatile i32, i32* %4
%24 = call i32 @print(i32 %23, i32 86, i8 signext 99, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
%26 = load volatile i32, i32* %4
%27 = call i32 @quebec(i32 %26)
%28 = call i32 @getAnswer(i32 19, i8 signext 97)
%29 = call i32 @awesome(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%30 = call i32 @beauce(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%31 = call i32 @montreal(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112)
%32 = call i32 @sherbrook(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112, i32* %3)
%33 = call i32 @rimouski(i32 18, float 0.000000e+00)
%34 = call i32 @sleep(i32 1)
%35 = call i32 (...) @ottawa()
%36 = load volatile i32, i32* %4
%37 = call i32 @print(i32 %36, i32 86, i8 signext 99, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0))
%39 = load volatile i32, i32* %4
%40 = call i32 @quebec(i32 %39)
%41 = call i32 @getAnswer(i32 20, i8 signext 97)
%42 = call i32 @awesome(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%43 = call i32 @beauce(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%44 = call i32 @montreal(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112)
%45 = call i32 @sherbrook(i32 24, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8 signext 112, i32* %3)
%46 = call i32 @rimouski(i32 18, float 0.000000e+00)
%47 = call i32 @sleep(i32 1)
ret i32 0
}