#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*/ printf(char *);
int /*<<< orphan*/ test_clone();
int /*<<< orphan*/ test_file();
int /*<<< orphan*/ test_fork();
int /*<<< orphan*/ test_pipe();
int /*<<< orphan*/ test_shm();
int /*<<< orphan*/ test_signal();
int /*<<< orphan*/ test_socket();
int /*<<< orphan*/ test_time();
int main(int argc, char **argv) {
  test_file();
  test_pipe();
  test_fork();
  test_time();
  test_socket();
  if (argc > 1) {
    printf("test_clone still considered buggy\n");
    test_clone();
  }
  test_signal();
  test_shm();
  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    $0x0,%al
call   1070 <test_file@plt>
mov    $0x0,%al
call   1030 <test_pipe@plt>
mov    $0x0,%al
call   1080 <test_fork@plt>
mov    $0x0,%al
call   1090 <test_time@plt>
mov    $0x0,%al
call   10b0 <test_socket@plt>
cmpl   $0x1,-0x8(%rbp)
jle    11e6 <main+0x56>
lea    0xe26(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   10a0 <test_clone@plt>
mov    $0x0,%al
call   1050 <test_signal@plt>
mov    $0x0,%al
call   1040 <test_shm@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1070 <test_file@plt>
xor    %eax,%eax
call   1030 <test_pipe@plt>
xor    %eax,%eax
call   1080 <test_fork@plt>
xor    %eax,%eax
call   1090 <test_time@plt>
xor    %eax,%eax
call   10b0 <test_socket@plt>
cmp    $0x2,%ebx
jl     11ce <main+0x3e>
lea    0xe3e(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <test_clone@plt>
xor    %eax,%eax
call   1060 <test_signal@plt>
xor    %eax,%eax
call   1040 <test_shm@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"test_clone still considered buggy\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 = call i32 (...) @test_file()
%7 = call i32 (...) @test_pipe()
%8 = call i32 (...) @test_fork()
%9 = call i32 (...) @test_time()
%10 = call i32 (...) @test_socket()
%11 = load i32, i32* %4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (...) @test_clone()
br label %16
16: ; preds = %13, %2
%17 = call i32 (...) @test_signal()
%18 = call i32 (...) @test_shm()
ret i32 0
}

LLVM IR (-O2):
@str = [34 x i8] c"test_clone still considered buggy\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_file()
%4 = tail call i32 (...) @test_pipe()
%5 = tail call i32 (...) @test_fork()
%6 = tail call i32 (...) @test_time()
%7 = tail call i32 (...) @test_socket()
%8 = icmp sgt i32 %0, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 (...) @test_clone()
br label %12
12: ; preds = %9, %2
%13 = tail call i32 (...) @test_signal()
%14 = tail call i32 (...) @test_shm()
ret i32 0
}