// File: /workspace/github_cpp_makefile_star2_O1/CoinXu[P]reviser-compiler/src/command_line_interface.cpp
// Function: reviser::CommandLineInterface::Run(int, char const* const*)
int CommandLineInterface::Run(int argc, const char* const argv[]) {
    if (!ParseArguments(argc, argv)) {
      return -1;
    }

    for (int i = 0; i < input_files.size(); i++) {
      for (int j = 0; j < output_directives.size(); j++) {
        OutputDirective directive = output_directives.at(j);
        GeneratorMap::const_iterator iter = generators.find(directive.name);
        Printer* printer;


        if (printer_name == "fs") {
          string output = io::absolute(directive.output_location)
            ? directive.output_location
            : io::join(string(getenv("PWD")), directive.output_location);
          string file_name = io::basename(input_files.at(i)) + "." + iter->second.output_file_suffix;
          printer = new PrinterFile(io::join(output, file_name));
        } else if (printer_name == "terminal") {
          printer = new PrinterTerminal();
        } else {
          cerr << "unkown printer type name: " << printer_name << endl;
          return -1;
        }

        Tokenizer tokenizer(MakeSourceCodeInputs(input_files.at(i)));
        Parser parse(&tokenizer, iter->second.generator, printer);
        parse.Program();
        delete printer;
      }
    }

    return 0;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movq %rdi, %rbx
callq 0x295b2
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb %cl, %cl
je 0x29451
movq 0x50(%rbx), %rax
cmpq 0x48(%rbx), %rax
setne -0x29(%rbp)
je 0x29448
leaq 0x80(%rbx), %rax
movq %rax, -0xb0(%rbp)
movq $0x0, -0x38(%rbp)
leaq -0x88(%rbp), %r14
movq 0x30(%rbx), %r12
cmpq %r12, 0x38(%rbx)
setne %al
je 0x29424
movl $0x30, %r15d
xorl %r13d, %r13d
movb %al, -0x2a(%rbp)
movq %r13, -0xb8(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x30(%r12,%r15), %rsi
movq -0x28(%r12,%r15), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x2a264
movq -0x10(%r12,%r15), %rax
movq %rax, -0x68(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%r12,%r15), %rsi
movq (%r12,%r15), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x2a264
movq %rbx, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2a796
movq %rax, -0x40(%rbp)
movq -0xb0(%rbp), %rbx
movq %rbx, %rdi
leaq 0x26ff8(%rip), %rsi     # 0x5000d
callq 0x250e0
testl %eax, %eax
je 0x29052
movq %rbx, %rdi
leaq 0x26fdc(%rip), %rsi     # 0x50004
callq 0x250e0
testl %eax, %eax
jne 0x2938f
movl $0x8, %edi
callq 0x25340
movq %rax, %r13
movq %r12, %rbx
movq %rax, %rdi
callq 0x438e8
jmp 0x29284
leaq -0x60(%rbp), %rdi
callq 0x35540
movl %eax, %r13d
movq %r12, %rbx
testb %al, %al
je 0x2908c
leaq -0x2b0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2c0(%rbp), %rdi
callq 0x2a264
jmp 0x290c1
leaq 0x26f7d(%rip), %rdi     # 0x50010
callq 0x25410
leaq -0x138(%rbp), %r14
movq %r14, %rdi
movq %rax, %rsi
leaq -0x2b(%rbp), %rdx
callq 0x25150
leaq -0x2c0(%rbp), %rdi
movq %r14, %rsi
leaq -0x60(%rbp), %rdx
callq 0x3535c
testb %r13b, %r13b
jne 0x290de
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x290de
callq 0x25320
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
movq -0x38(%rbp), %rax
cmpq %rax, %rdx
jbe 0x29474
shlq $0x5, %rax
addq %rax, %rsi
leaq -0x118(%rbp), %r14
movq %r14, %rdi
callq 0x35578
movq %r14, %rdi
leaq 0x27032(%rip), %rsi     # 0x5014c
callq 0x25650
leaq -0x98(%rbp), %rsi
movq %rsi, -0xa8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2914f
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x29155
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xa0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x40(%rbp), %rax
movq 0x68(%rax), %rsi
movq 0x70(%rax), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x250f0
leaq -0x1a8(%rbp), %rsi
movq %rsi, -0x1b8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x291b7
movq %rdx, -0x1b8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x1a8(%rbp)
jmp 0x291bd
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x1b0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x291ef
callq 0x25320
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x29207
callq 0x25320
movl $0x228, %edi            # imm = 0x228
callq 0x25340
movq %rax, %r13
leaq -0xf8(%rbp), %r14
movq %r14, %rdi
leaq -0x2c0(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x3535c
movq %r13, %rdi
movq %r14, %rsi
callq 0x43680
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x29254
callq 0x25320
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
cmpq %rax, %rdi
je 0x2926c
callq 0x25320
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
cmpq %rax, %rdi
je 0x29284
callq 0x25320
movq 0x48(%rbx), %rdx
movq 0x50(%rbx), %rax
subq %rdx, %rax
sarq $0x5, %rax
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x29463
movq %rsi, %rax
shlq $0x5, %rax
addq %rax, %rdx
leaq -0xd8(%rbp), %r14
movq %r14, %rdi
callq 0x297fc
leaq -0x2c0(%rbp), %rdi
movq %r14, %rsi
callq 0x2fdac
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x292e0
callq 0x25320
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rdx
leaq -0x1b8(%rbp), %r14
movq %r14, %rdi
leaq -0x2c0(%rbp), %rsi
movq %r13, %rcx
callq 0x2c7b4
movq %r14, %rdi
callq 0x2c8bc
movq %r13, %rdi
callq 0x25320
movq %r14, %rdi
callq 0x2c88e
leaq -0x2c0(%rbp), %rdi
callq 0x30188
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x29337
callq 0x25320
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
movq -0xb8(%rbp), %r13
je 0x29353
callq 0x25320
incq %r13
movq 0x30(%rbx), %r12
movq 0x38(%rbx), %rax
subq %r12, %rax
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rax
addq $0x48, %r15
cmpq %r13, %rax
seta %al
leaq -0x88(%rbp), %r14
ja 0x28fa2
jmp 0x29424
movl $0x1a, %edx
movq 0x37c4d(%rip), %rdi     # 0x60fe8
leaq 0x26c72(%rip), %rsi     # 0x50014
callq 0x253c0
movq %r12, %rbx
movq 0x80(%r12), %rsi
movq 0x88(%r12), %rdx
movq 0x37c27(%rip), %rdi     # 0x60fe8
callq 0x253c0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x25330
movsbl %al, %esi
movq %r12, %rdi
callq 0x25040
movq %rax, %rdi
callq 0x25270
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x29402
callq 0x25320
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x29417
callq 0x25320
testb $0x1, -0x2a(%rbp)
leaq -0x88(%rbp), %r14
jne 0x29448
movq -0x38(%rbp), %rdx
incq %rdx
movq 0x50(%rbx), %rax
subq 0x48(%rbx), %rax
sarq $0x5, %rax
movq %rdx, -0x38(%rbp)
cmpq %rdx, %rax
seta -0x29(%rbp)
ja 0x28f88
movzbl -0x29(%rbp), %eax
andl $0x1, %eax
negl %eax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26e60(%rip), %rdi     # 0x502ca
movq %rax, %rdx
xorl %eax, %eax
callq 0x25510
leaq 0x26e4f(%rip), %rdi     # 0x502ca
movq %rax, %rsi
xorl %eax, %eax
callq 0x25510
jmp 0x2959a
movq %rax, %rbx
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
jmp 0x29574
jmp 0x2959a
movq %rax, %rbx
jmp 0x294ee
jmp 0x294b1
movq %rax, %rbx
jmp 0x294f6
movq %rax, %rbx
jmp 0x29521
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x29509
callq 0x25320
jmp 0x29509
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x294ee
callq 0x25320
movq %r13, %rdi
callq 0x25320
movq -0x1b8(%rbp), %rdi
leaq -0x1a8(%rbp), %rax
jmp 0x29517
movq %rax, %rbx
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x29521
callq 0x25320
movq -0x2c0(%rbp), %rdi
leaq -0x2b0(%rbp), %rax
jmp 0x29574
jmp 0x2959a
movq %rax, %rbx
movq %r13, %rdi
jmp 0x29579
jmp 0x2959a
movq %rax, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x2c88e
jmp 0x29553
jmp 0x2959a
movq %rax, %rbx
leaq -0x2c0(%rbp), %rdi
callq 0x30188
jmp 0x2959d
jmp 0x2959a
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x2959d
callq 0x25320
jmp 0x2959d
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x295a9
callq 0x25320
jmp 0x295a9
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x2a0f0
movq %rbx, %rdi
callq 0x255f0
nop