#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ list_with_chars();
int /*<<< orphan*/ list_with_ints();
int /*<<< orphan*/ list_with_strdup();
int parse_argv(int, char **);
int /*<<< orphan*/ seperator();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  srand(time(NULL));
  int r = parse_argv(argc, argv);
  if (r <= 0)
    goto finish;
  list_with_ints();
  seperator();
  list_with_chars();
  seperator();
  list_with_strdup();
finish:
  return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <parse_argv@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jg     11b4 <main+0x44>
jmp    11d7 <main+0x67>
mov    $0x0,%al
call   1030 <list_with_ints@plt>
mov    $0x0,%al
call   1090 <seperator@plt>
mov    $0x0,%al
call   1070 <list_with_chars@plt>
mov    $0x0,%al
call   1090 <seperator@plt>
mov    $0x0,%al
call   1050 <list_with_strdup@plt>
cmpl   $0x0,-0x14(%rbp)
jge    11f2 <main+0x82>
mov    0x2df8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
jmp    11fe <main+0x8e>
mov    0x2ddf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %edi,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1080 <parse_argv@plt>
mov    %eax,%ebx
test   %eax,%eax
jle    11b9 <main+0x49>
xor    %eax,%eax
call   1030 <list_with_ints@plt>
xor    %eax,%eax
call   1090 <seperator@plt>
xor    %eax,%eax
call   1070 <list_with_chars@plt>
xor    %eax,%eax
call   1090 <seperator@plt>
xor    %eax,%eax
call   1050 <list_with_strdup@plt>
test   %ebx,%ebx
jns    11c6 <main+0x56>
mov    0x2e1c(%rip),%rax
jmp    11cd <main+0x5d>
mov    0x2e0b(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @time(i32* null)
%8 = call i32 @srand(i32 %7)
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
%11 = call i32 @parse_argv(i32 %9, i8** %10)
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = icmp sle i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
br label %21
15: ; preds = %2
%16 = call i32 (...) @list_with_ints()
%17 = call i32 (...) @seperator()
%18 = call i32 (...) @list_with_chars()
%19 = call i32 (...) @seperator()
%20 = call i32 (...) @list_with_strdup()
br label %21
21: ; preds = %15, %14
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = load i32, i32* @EXIT_FAILURE
br label %28
26: ; preds = %21
%27 = load i32, i32* @EXIT_SUCCESS
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
ret i32 %29
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 @parse_argv(i32 %0, i8** %1)
%6 = icmp slt i32 %5, 1
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = tail call i32 (...) @list_with_ints()
%9 = tail call i32 (...) @seperator()
%10 = tail call i32 (...) @list_with_chars()
%11 = tail call i32 (...) @seperator()
%12 = tail call i32 (...) @list_with_strdup()
br label %13
13: ; preds = %2, %7
%14 = icmp slt i32 %5, 0
%15 = load i32, i32* @EXIT_FAILURE
%16 = load i32, i32* @EXIT_SUCCESS
%17 = select i1 %14, i32 %15, i32 %16
ret i32 %17
}