#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*/ initialize_bomb_solve();
int /*<<< orphan*/ phase_1(char *);
int /*<<< orphan*/ phase_2(char *);
int /*<<< orphan*/ phase_3(char *);
int /*<<< orphan*/ phase_4(char *);
int /*<<< orphan*/ phase_5(char *);
int /*<<< orphan*/ phase_6(char *);
int /*<<< orphan*/ secret_phase();
int main() {
  char *input = "";
  initialize_bomb_solve();
  phase_1(input);
  phase_2(input);
  phase_3(input);
  phase_4(input);
  phase_5(input);
  phase_6(input);
  secret_phase();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe6a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1040 <initialize_bomb_solve@plt>
mov    -0x10(%rbp),%rdi
call   1060 <phase_1@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <phase_2@plt>
mov    -0x10(%rbp),%rdi
call   1050 <phase_3@plt>
mov    -0x10(%rbp),%rdi
call   1080 <phase_4@plt>
mov    -0x10(%rbp),%rdi
call   1030 <phase_5@plt>
mov    -0x10(%rbp),%rdi
call   1090 <phase_6@plt>
mov    $0x0,%al
call   1070 <secret_phase@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <initialize_bomb_solve@plt>
lea    0xe71(%rip),%rbx
mov    %rbx,%rdi
call   1060 <phase_1@plt>
mov    %rbx,%rdi
call   10a0 <phase_2@plt>
mov    %rbx,%rdi
call   1050 <phase_3@plt>
mov    %rbx,%rdi
call   1080 <phase_4@plt>
mov    %rbx,%rdi
call   1030 <phase_5@plt>
mov    %rbx,%rdi
call   1090 <phase_6@plt>
xor    %eax,%eax
call   1070 <secret_phase@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = call i32 (...) @initialize_bomb_solve()
%4 = load i8*, i8** %2
%5 = call i32 @phase_1(i8* %4)
%6 = load i8*, i8** %2
%7 = call i32 @phase_2(i8* %6)
%8 = load i8*, i8** %2
%9 = call i32 @phase_3(i8* %8)
%10 = load i8*, i8** %2
%11 = call i32 @phase_4(i8* %10)
%12 = load i8*, i8** %2
%13 = call i32 @phase_5(i8* %12)
%14 = load i8*, i8** %2
%15 = call i32 @phase_6(i8* %14)
%16 = call i32 (...) @secret_phase()
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = tail call i32 (...) @initialize_bomb_solve()
%2 = tail call i32 @phase_1(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @phase_2(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @phase_3(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @phase_4(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @phase_5(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @phase_6(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (...) @secret_phase()
ret i32 0
}