#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*/ bbr2bbv();
int /*<<< orphan*/ bbv2bbr();
int /*<<< orphan*/ build_rbc_index();
int /*<<< orphan*/ clear_faces();
int /*<<< orphan*/ init();
int /*<<< orphan*/ keep_region();
int /*<<< orphan*/ read_file(char const *);
int /*<<< orphan*/ usg(int, char const **);
int /*<<< orphan*/ write_file(char const *);
int main(int argc, const char **argv) {
  usg(argc, argv);
  init();
  read_file(argv[1]);
  build_rbc_index();
  keep_region();
  bbv2bbr();
  bbr2bbv();
  clear_faces();
  write_file(argv[2]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <usg@plt>
mov    $0x0,%al
call   1090 <init@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10a0 <read_file@plt>
mov    $0x0,%al
call   1070 <build_rbc_index@plt>
mov    $0x0,%al
call   1030 <keep_region@plt>
mov    $0x0,%al
call   10b0 <bbv2bbr@plt>
mov    $0x0,%al
call   1080 <bbr2bbv@plt>
mov    $0x0,%al
call   1040 <clear_faces@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <write_file@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
call   1050 <usg@plt>
xor    %eax,%eax
call   1090 <init@plt>
mov    0x8(%rbx),%rdi
call   10a0 <read_file@plt>
xor    %eax,%eax
call   1070 <build_rbc_index@plt>
xor    %eax,%eax
call   1030 <keep_region@plt>
xor    %eax,%eax
call   10b0 <bbv2bbr@plt>
xor    %eax,%eax
call   1080 <bbr2bbv@plt>
xor    %eax,%eax
call   1040 <clear_faces@plt>
mov    0x10(%rbx),%rdi
call   1060 <write_file@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* %3
%6 = load i8**, i8*** %4
%7 = call i32 @usg(i32 %5, i8** %6)
%8 = call i32 (...) @init()
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @read_file(i8* %11)
%13 = call i32 (...) @build_rbc_index()
%14 = call i32 (...) @keep_region()
%15 = call i32 (...) @bbv2bbr()
%16 = call i32 (...) @bbr2bbv()
%17 = call i32 (...) @clear_faces()
%18 = load i8**, i8*** %4
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = call i32 @write_file(i8* %20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @usg(i32 %0, i8** %1)
%4 = tail call i32 (...) @init()
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @read_file(i8* %6)
%8 = tail call i32 (...) @build_rbc_index()
%9 = tail call i32 (...) @keep_region()
%10 = tail call i32 (...) @bbv2bbr()
%11 = tail call i32 (...) @bbr2bbv()
%12 = tail call i32 (...) @clear_faces()
%13 = getelementptr inbounds i8*, i8** %1, i64 2
%14 = load i8*, i8** %13
%15 = tail call i32 @write_file(i8* %14)
ret i32 0
}