#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*/ clear_newlines(char *, char *);
int /*<<< orphan*/ determine_length(char *, char *);
int /*<<< orphan*/ gen(char *, char *, char *);
int /*<<< orphan*/ lex(char *, char *);
int /*<<< orphan*/ prep_pass1(char *, char *);
int /*<<< orphan*/ prep_pass2(char *, char *);
int /*<<< orphan*/ prep_pass3(char *, char *);
int main(int argc, char **argv) {
  prep_pass1(argv[1], argv[2]);
  prep_pass2(argv[2], argv[3]);
  prep_pass3(argv[3], argv[4]);
  lex(argv[4], argv[5]);
  clear_newlines(argv[5], argv[6]);
  determine_length(argv[6], argv[7]);
  gen(argv[6], argv[8], argv[7]);
  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    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1060 <prep_pass1@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
call   1090 <prep_pass2@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rsi
call   1070 <prep_pass3@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rsi
call   1030 <lex@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rsi
call   1040 <clear_newlines@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rsi
call   1050 <determine_length@plt>
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rdx
call   1080 <gen@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
mov    0x10(%rsi),%rsi
call   1060 <prep_pass1@plt>
mov    0x10(%rbx),%rdi
mov    0x18(%rbx),%rsi
call   1090 <prep_pass2@plt>
mov    0x18(%rbx),%rdi
mov    0x20(%rbx),%rsi
call   1070 <prep_pass3@plt>
mov    0x20(%rbx),%rdi
mov    0x28(%rbx),%rsi
call   1030 <lex@plt>
mov    0x28(%rbx),%rdi
mov    0x30(%rbx),%rsi
call   1040 <clear_newlines@plt>
mov    0x30(%rbx),%rdi
mov    0x38(%rbx),%rsi
call   1050 <determine_length@plt>
mov    0x40(%rbx),%rsi
mov    0x30(%rbx),%rdi
mov    0x38(%rbx),%rdx
call   1080 <gen@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
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 i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 1
%8 = load i8*, i8** %7
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 2
%11 = load i8*, i8** %10
%12 = call i32 @prep_pass1(i8* %8, i8* %11)
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 2
%15 = load i8*, i8** %14
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 3
%18 = load i8*, i8** %17
%19 = call i32 @prep_pass2(i8* %15, i8* %18)
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 3
%22 = load i8*, i8** %21
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 4
%25 = load i8*, i8** %24
%26 = call i32 @prep_pass3(i8* %22, i8* %25)
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 4
%29 = load i8*, i8** %28
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 5
%32 = load i8*, i8** %31
%33 = call i32 @lex(i8* %29, i8* %32)
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 5
%36 = load i8*, i8** %35
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 6
%39 = load i8*, i8** %38
%40 = call i32 @clear_newlines(i8* %36, i8* %39)
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 6
%43 = load i8*, i8** %42
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 7
%46 = load i8*, i8** %45
%47 = call i32 @determine_length(i8* %43, i8* %46)
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 6
%50 = load i8*, i8** %49
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 8
%53 = load i8*, i8** %52
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 7
%56 = load i8*, i8** %55
%57 = call i32 @gen(i8* %50, i8* %53, i8* %56)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8*, i8** %1, i64 2
%6 = load i8*, i8** %5
%7 = tail call i32 @prep_pass1(i8* %4, i8* %6)
%8 = load i8*, i8** %5
%9 = getelementptr inbounds i8*, i8** %1, i64 3
%10 = load i8*, i8** %9
%11 = tail call i32 @prep_pass2(i8* %8, i8* %10)
%12 = load i8*, i8** %9
%13 = getelementptr inbounds i8*, i8** %1, i64 4
%14 = load i8*, i8** %13
%15 = tail call i32 @prep_pass3(i8* %12, i8* %14)
%16 = load i8*, i8** %13
%17 = getelementptr inbounds i8*, i8** %1, i64 5
%18 = load i8*, i8** %17
%19 = tail call i32 @lex(i8* %16, i8* %18)
%20 = load i8*, i8** %17
%21 = getelementptr inbounds i8*, i8** %1, i64 6
%22 = load i8*, i8** %21
%23 = tail call i32 @clear_newlines(i8* %20, i8* %22)
%24 = load i8*, i8** %21
%25 = getelementptr inbounds i8*, i8** %1, i64 7
%26 = load i8*, i8** %25
%27 = tail call i32 @determine_length(i8* %24, i8* %26)
%28 = load i8*, i8** %21
%29 = getelementptr inbounds i8*, i8** %1, i64 8
%30 = load i8*, i8** %29
%31 = load i8*, i8** %25
%32 = tail call i32 @gen(i8* %28, i8* %30, i8* %31)
ret i32 0
}