#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*/ createGraph(char *);
int /*<<< orphan*/ createRevGraph(char *);
int /*<<< orphan*/ dfsloop(int);
int /*<<< orphan*/ freegraph();
int /*<<< orphan*/ printcurrentts();
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  if (2 != argc) {
    printf("./a.out <inputfile>\n");
    return 0;
  }
  printf("\n#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Started "
         "#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\n");
  printf("%s\n", "Start creating rev graph at");
  printcurrentts();
  createRevGraph(argv[1]);
  printf("%s\n", "Done creating rev graph at");
  printcurrentts();
  printf("%s\n", "Start dfsloop rev graph at");
  dfsloop(1);
  printf("%s\n", "Done dfsloop rev graph at");
  printcurrentts();
  printf("%s\n", "Start free-ing rev graph");
  freegraph();
  printf("%s\n", "Done free-ing rev graph at");
  printcurrentts();
  printf("%s\n", "Start creating graph at");
  printcurrentts();
  createGraph(argv[1]);
  printf("%s\n", "Done creating graph at");
  printcurrentts();
  printf("%s\n", "Start dfsloop graph at");
  dfsloop(0);
  printf("%s\n", "Done dfsloop graph at");
  printcurrentts();
  printf("%s\n", "Start free-ing graph");
  freegraph();
  printf("%s\n", "Done free-ing graph at");
  printcurrentts();
  printf("#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Completed "
         "#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\n");
  return 1;
}


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    $0x2,%eax
cmp    -0x8(%rbp),%eax
je     119e <main+0x3e>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    132e <main+0x1ce>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    0xecd(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1080 <createRevGraph@plt>
lea    0xea7(%rip),%rdi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xe8b(%rip),%rdi
lea    0xebf(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <dfsloop@plt>
lea    0xe6c(%rip),%rdi
lea    0xebb(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xe50(%rip),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <freegraph@plt>
lea    0xe34(%rip),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xe18(%rip),%rdi
lea    0xeb5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <createGraph@plt>
lea    0xdef(%rip),%rdi
lea    0xea4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xdd3(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <dfsloop@plt>
lea    0xdb7(%rip),%rdi
lea    0xe9a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xd9b(%rip),%rdi
lea    0xe94(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1070 <freegraph@plt>
lea    0xd7f(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printcurrentts@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1282 <main+0x122>
mov    %rsi,%rbx
lea    0xfb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
mov    0x8(%rbx),%rdi
call   1080 <createRevGraph@plt>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xe86(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
mov    $0x1,%edi
call   1050 <dfsloop@plt>
lea    0xe86(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xe8d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <freegraph@plt>
lea    0xe93(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xe9b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
mov    0x8(%rbx),%rdi
call   1060 <createGraph@plt>
lea    0xe97(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xe9b(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <dfsloop@plt>
lea    0xe9f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xea2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <freegraph@plt>
lea    0xea4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printcurrentts@plt>
lea    0xf15(%rip),%rdi
jmp    128b <main+0x12b>
xor    %ebp,%ebp
lea    0xf78(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"./a.out <inputfile>\0A\00"
@.str.1 = [110 x i8] c"\0A#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Started #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\0A\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [28 x i8] c"Start creating rev graph at\00"
@.str.4 = [27 x i8] c"Done creating rev graph at\00"
@.str.5 = [27 x i8] c"Start dfsloop rev graph at\00"
@.str.6 = [26 x i8] c"Done dfsloop rev graph at\00"
@.str.7 = [25 x i8] c"Start free-ing rev graph\00"
@.str.8 = [27 x i8] c"Done free-ing rev graph at\00"
@.str.9 = [24 x i8] c"Start creating graph at\00"
@.str.10 = [23 x i8] c"Done creating graph at\00"
@.str.11 = [23 x i8] c"Start dfsloop graph at\00"
@.str.12 = [22 x i8] c"Done dfsloop graph at\00"
@.str.13 = [21 x i8] c"Start free-ing graph\00"
@.str.14 = [23 x i8] c"Done free-ing graph at\00"
@.str.15 = [111 x i8] c"#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Completed #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\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 = load i32, i32* %4
%7 = icmp ne i32 2, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %45
10: ; preds = %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (...) @printcurrentts()
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @createRevGraph(i8* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (...) @printcurrentts()
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 @dfsloop(i32 1)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (...) @printcurrentts()
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%25 = call i32 (...) @freegraph()
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%27 = call i32 (...) @printcurrentts()
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%29 = call i32 (...) @printcurrentts()
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32 @createGraph(i8* %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%35 = call i32 (...) @printcurrentts()
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%37 = call i32 @dfsloop(i32 0)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%39 = call i32 (...) @printcurrentts()
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%41 = call i32 (...) @freegraph()
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%43 = call i32 (...) @printcurrentts()
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.15, i64 0, i64 0))
store i32 1, i32* %3
br label %45
45: ; preds = %10, %8
%46 = load i32, i32* %3
ret i32 %46
}

LLVM IR (-O2):
@.str.3 = [28 x i8] c"Start creating rev graph at\00"
@.str.4 = [27 x i8] c"Done creating rev graph at\00"
@.str.5 = [27 x i8] c"Start dfsloop rev graph at\00"
@.str.6 = [26 x i8] c"Done dfsloop rev graph at\00"
@.str.7 = [25 x i8] c"Start free-ing rev graph\00"
@.str.8 = [27 x i8] c"Done free-ing rev graph at\00"
@.str.9 = [24 x i8] c"Start creating graph at\00"
@.str.10 = [23 x i8] c"Done creating graph at\00"
@.str.11 = [23 x i8] c"Start dfsloop graph at\00"
@.str.12 = [22 x i8] c"Done dfsloop graph at\00"
@.str.13 = [21 x i8] c"Start free-ing graph\00"
@.str.14 = [23 x i8] c"Done free-ing graph at\00"
@str = [109 x i8] c"\0A#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Started #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\00"
@str.16 = [110 x i8] c"#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# Execution Completed #*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#\00"
@str.17 = [20 x i8] c"./a.out <inputfile>\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %35
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (...) @printcurrentts()
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @createRevGraph(i8* %9)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 (...) @printcurrentts()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 @dfsloop(i32 1)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%16 = tail call i32 (...) @printcurrentts()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 (...) @freegraph()
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%20 = tail call i32 (...) @printcurrentts()
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%22 = tail call i32 (...) @printcurrentts()
%23 = load i8*, i8** %8
%24 = tail call i32 @createGraph(i8* %23)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%26 = tail call i32 (...) @printcurrentts()
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0))
%28 = tail call i32 @dfsloop(i32 0)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%30 = tail call i32 (...) @printcurrentts()
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%32 = tail call i32 (...) @freegraph()
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%34 = tail call i32 (...) @printcurrentts()
br label %35
35: ; preds = %2, %4
%36 = phi i8* [ getelementptr inbounds ([110 x i8], [110 x i8]* @str.16, i64 0, i64 0), %4 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @str.17, i64 0, i64 0), %2 ]
%37 = phi i32 [ 1, %4 ], [ 0, %2 ]
%38 = tail call i32 @puts(i8* dereferenceable(1) %36)
ret i32 %37
}