#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*/ child_exit_yet(int, char **);
int /*<<< orphan*/ child_terminated_by_signal(int, char **);
int /*<<< orphan*/ child_terminated_normally(int, char **);
int /*<<< orphan*/ no_child_exists(int, char **);
int /*<<< orphan*/ point();
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  child_terminated_normally(argc, argv);
  printf("=========================================\n");
  child_terminated_by_signal(argc, argv);
  printf("=========================================\n");
  child_exit_yet(argc, argv);
  printf("=========================================\n");
  point();
  no_child_exists(argc, argv);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <child_terminated_normally@plt>
lea    0xe77(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <child_terminated_by_signal@plt>
lea    0xe5f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <child_exit_yet@plt>
lea    0xe47(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <point@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <no_child_exists@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
call   1060 <child_terminated_normally@plt>
lea    0xe8b(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1070 <child_terminated_by_signal@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1080 <child_exit_yet@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <point@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <no_child_exists@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [43 x i8] c"=========================================\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @child_terminated_normally(i32 %6, i8** %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = call i32 @child_terminated_by_signal(i32 %10, i8** %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @child_exit_yet(i32 %14, i8** %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (...) @point()
%19 = load i32, i32* %4
%20 = load i8**, i8*** %5
%21 = call i32 @no_child_exists(i32 %19, i8** %20)
ret i32 0
}

LLVM IR (-O2):
@str.2 = [42 x i8] c"=========================================\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @child_terminated_normally(i32 %0, i8** %1)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0))
%5 = tail call i32 @child_terminated_by_signal(i32 %0, i8** %1)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0))
%7 = tail call i32 @child_exit_yet(i32 %0, i8** %1)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0))
%9 = tail call i32 (...) @point()
%10 = tail call i32 @no_child_exists(i32 %0, i8** %1)
ret i32 0
}