#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*/ flockfile(int /*<<< orphan*/);
int /*<<< orphan*/ funlockfile(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ test_clause();
int /*<<< orphan*/ test_list();
int /*<<< orphan*/ test_parser();
int /*<<< orphan*/ test_solve();
int main(int argc, char **argv) {
  do {
    flockfile(stdout);
    printf("-------------------------------------------------------\n");
    funlockfile(stdout);
  } while (0);
  test_list();
  test_clause();
  test_parser();
  test_solve();
  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    0x2e53(%rip),%rax
mov    (%rax),%edi
call   1060 <flockfile@plt>
lea    0xe65(%rip),%rdi
call   1050 <printf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
call   1030 <funlockfile@plt>
mov    $0x0,%al
call   1070 <test_list@plt>
mov    $0x0,%al
call   1080 <test_clause@plt>
mov    $0x0,%al
call   1090 <test_parser@plt>
mov    $0x0,%al
call   1040 <test_solve@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2e68(%rip),%rbx
mov    (%rbx),%edi
call   1060 <flockfile@plt>
lea    0xe7a(%rip),%rdi
call   1050 <puts@plt>
mov    (%rbx),%edi
call   1030 <funlockfile@plt>
xor    %eax,%eax
call   1070 <test_list@plt>
xor    %eax,%eax
call   1080 <test_clause@plt>
xor    %eax,%eax
call   1090 <test_parser@plt>
xor    %eax,%eax
call   1040 <test_solve@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [57 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
br label %6
6: ; preds = %2
%7 = load i32, i32* @stdout
%8 = call i32 @flockfile(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = call i32 @funlockfile(i32 %10)
br label %12
12: ; preds = %6
%13 = call i32 (...) @test_list()
%14 = call i32 (...) @test_clause()
%15 = call i32 (...) @test_parser()
%16 = call i32 (...) @test_solve()
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@str = [56 x i8] c"-------------------------------------------------------\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @flockfile(i32 %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 @funlockfile(i32 %6)
%8 = tail call i32 (...) @test_list()
%9 = tail call i32 (...) @test_clause()
%10 = tail call i32 (...) @test_parser()
%11 = tail call i32 (...) @test_solve()
ret i32 0
}