// File: /workspace/github_c_makefile_star2_O2/ieyasu[P]funit/funit.c
// Function: main
int main(int argc, char **argv)
{
    struct Config conf;
    struct Options opts;

    if (parse_args(argc, argv, &opts)) {
        return -1;
    }

    if (read_config(&conf)) {
        free_config(&conf);
        return -1;
    }

    while (optind < argc) {
printf("generating code from %s to %s\n", argv[optind], opts.outfile);

        struct TestFile *tf = generate_code(argv[optind], opts.outfile, &conf);
        if (tf) {
            if (opts.just_output_fortran) goto pass;
printf("building test for %s\n", opts.outfile);
            build_test(tf, &conf);

            if (opts.stop_after_build) goto pass;
printf("running test %s\n", tf->exe);
            run_test(tf->exe);

 pass:
            close_testfile(tf);
        } // XXX what does it mean if tf == NULL?

        optind++;
    }

    free_config(&conf);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movl %edi, 0xc(%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x4c89(%rip), %r15      # 0x704a
movq 0x9c10(%rip), %r14      # 0xbfd8
pushq $0x1
popq %rbp
leaq 0x4c7e(%rip), %r12      # 0x7050
leaq 0x4c95(%rip), %r13      # 0x706e
movl $0x0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movl 0xc(%rsp), %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2220
cmpl $0x6f, %eax
jne 0x2408
movq (%r14), %rax
movq %rax, 0x18(%rsp)
jmp 0x23ea
cmpl $-0x1, %eax
je 0x248b
cmpl $0x45, %eax
je 0x244f
cmpl $0x63, %eax
jne 0x283c
movl %ebp, 0x8(%rsp)
cmpl $0x0, 0x10(%rsp)
movl $0x0, %eax
movq %rax, 0x10(%rsp)
je 0x23ea
movq 0x9bc1(%rip), %rax      # 0xbff8
movq (%rax), %rsi
movq %r13, %rdi
callq 0x2130
movl %ebp, %eax
movq %rax, 0x10(%rsp)
movl %ebp, 0x8(%rsp)
jmp 0x23ea
movl %ebp, %eax
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x8(%rsp)
movl $0x0, 0x8(%rsp)
je 0x23ea
movq 0x9b8c(%rip), %rax      # 0xbff8
movq (%rax), %rsi
movq %r12, %rdi
callq 0x2130
movl %ebp, %eax
movq %rax, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
jmp 0x23ea
movq 0x9b3e(%rip), %rax      # 0xbfd0
movl (%rax), %eax
movl 0xc(%rsp), %ebp
cmpl %ebp, %eax
je 0x2871
cmpq $0x0, 0x18(%rsp)
setne %cl
incl %eax
cmpl %ebp, %eax
setl %al
andb %cl, %al
cmpb $0x1, %al
je 0x28a0
leaq 0x28(%rsp), %rdi
callq 0x306c
testl %eax, %eax
je 0x24da
leaq 0x28(%rsp), %rdi
callq 0x35ba
pushq $-0x1
popq %rax
jmp 0x282d
movq 0x9aef(%rip), %r15      # 0xbfd0
movl (%r15), %eax
cmpl %ebp, %eax
jge 0x2821
cltq
movq (%rbx,%rax,8), %rsi
leaq 0x4b0b(%rip), %rdi      # 0x7004
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0x2100
movslq (%r15), %rax
movq (%rbx,%rax,8), %r13
movq %r13, %rdi
callq 0x50b6
testq %rax, %rax
je 0x2797
movq %rax, %r12
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x278f
movq %r13, %rdi
leaq 0x4c0e(%rip), %rsi      # 0x7145
callq 0x2280
movq %rax, %rbp
movq %rax, 0xac8a(%rip)      # 0xd1d0
leaq 0x9c83(%rip), %rdi      # 0xc1d0
pushq $0x2e
popq %rsi
callq 0x2110
movq %rax, %r15
movq %rax, 0xac79(%rip)      # 0xd1d8
movb $0x1, %al
testq %rbp, %rbp
je 0x25de
addq $0x5, %rbp
testq %r15, %r15
je 0x2574
cmpq %rbp, %r15
jbe 0x25de
leaq 0x9c55(%rip), %rdi      # 0xc1d0
movq %rbp, %rsi
callq 0x2090
testq %r15, %r15
je 0x25a8
movq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
jne 0x25b9
movq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x2090
jmp 0x25b9
movq 0x38(%rsp), %rsi
leaq 0x9c1c(%rip), %rdi      # 0xc1d0
callq 0x2230
leaq 0x9bf0(%rip), %rdx      # 0xc1b0
testq %r14, %r14
je 0x25d5
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rdx, 0x8(%r14)
movq %rcx, %r14
jmp 0x25c0
movq %rax, 0x9bd4(%rip)      # 0xc1b0
xorl %eax, %eax
movl %eax, 0x24(%rsp)
movq 0x18(%rsp), %rax
movq %rax, %r15
testq %rax, %rax
jne 0x268f
movq %r13, %rdi
callq 0x20d0
movq %rax, %rbp
movq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x20d0
movl $0x1000, %ecx           # imm = 0x1000
subq %rax, %rcx
cmpq %rcx, %rbp
ja 0x28e3
movq %r13, %rdi
pushq $0x2e
popq %rsi
callq 0x2110
movq %rax, 0xbbba(%rip)      # 0xe1e8
testq %rax, %rax
je 0x2647
movq %rax, %rbp
movq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0x2180
testl %eax, %eax
je 0x2666
leaq 0xab92(%rip), %r14      # 0xd1e0
movq %r14, %rdi
movq %r13, %rsi
callq 0x2090
movq %r14, %rdi
movq %r15, %rsi
callq 0x2230
jmp 0x268c
subq %r13, %rbp
leaq 0xab70(%rip), %r14      # 0xd1e0
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x2070
addq %r14, %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2090
movq %r14, %r15
movq %r15, 0x8(%r12)
movq %r15, %rdi
leaq 0x4a66(%rip), %rsi      # 0x7104
callq 0x2210
testq %rax, %rax
je 0x27bd
movq %rax, %r13
movq %r12, %r14
addq $0x10, %r14
movq (%r14), %rdi
movq %rax, %rsi
callq 0x36f0
testl %eax, %eax
movl 0xc(%rsp), %ebp
je 0x26dd
movq %r12, %rdi
callq 0x5008
movq 0x98f8(%rip), %r15      # 0xbfd0
jmp 0x2797
movq %r13, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x27e1
cmpb $0x0, 0x24(%rsp)
movq 0x98d7(%rip), %r15      # 0xbfd0
je 0x27a4
cmpl $0x0, 0x10(%rsp)
jne 0x278f
leaq 0x4912(%rip), %rdi      # 0x7023
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x2100
movl $0x80, %esi
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x6518
movq %r14, %rdi
movq %r12, %rsi
leaq 0x28(%rsp), %rdx
callq 0x2c0e
movq 0x60(%rsp), %rdi
callq 0x2903
movq %r14, %rdi
callq 0x653e
cmpl $0x0, 0x8(%rsp)
jne 0x278f
movq 0x8(%r12), %rsi
leaq 0x48d5(%rip), %rdi      # 0x7039
xorl %eax, %eax
callq 0x2100
movq 0x8(%r12), %r15
movq %r15, %rdi
callq 0x63d0
testl %eax, %eax
je 0x2801
movq %r15, %rdi
callq 0x2903
movq 0x9841(%rip), %r15      # 0xbfd0
movq %r12, %rdi
callq 0x5008
movl (%r15), %eax
incl %eax
movl %eax, (%r15)
jmp 0x24e4
movq (%r14), %r14
testq %r14, %r14
je 0x26ff
movq 0x8(%r14), %rax
movq (%rax), %rax
movq %rax, 0x8(%r14)
jmp 0x27a4
movq 0x9834(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4938(%rip), %rsi      # 0x7106
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
movl 0xc(%rsp), %ebp
jmp 0x26d1
movq 0x9810(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x493a(%rip), %rsi      # 0x712c
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x26c9
movq 0x97f0(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4986(%rip), %rsi      # 0x7198
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2788
leaq 0x28(%rsp), %rdi
callq 0x35ba
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3f, %eax
je 0x2865
cmpl $0x68, %eax
jne 0x28c0
movq 0x97ab(%rip), %rax      # 0xbff8
movq (%rax), %rsi
leaq 0x4969(%rip), %rdi      # 0x71c0
callq 0x2130
movl 0xc(%rsp), %ebp
jmp 0x24ba
movq 0x978c(%rip), %rax      # 0xbff8
movq (%rax), %rsi
jmp 0x288f
movq 0x9780(%rip), %r14      # 0xbff8
movq (%r14), %rdi
movq (%rbx), %rdx
leaq 0x4821(%rip), %rsi      # 0x70a6
xorl %eax, %eax
callq 0x2190
movq (%r14), %rsi
leaq 0x492a(%rip), %rdi      # 0x71c0
callq 0x2130
jmp 0x24d2
movq 0x9751(%rip), %rax      # 0xbff8
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x480a(%rip), %rsi      # 0x70be
xorl %eax, %eax
callq 0x2190
jmp 0x24d2
movq 0x9731(%rip), %rcx      # 0xbff8
movq (%rcx), %rdi
movsbl %al, %edx
leaq 0x47b8(%rip), %rsi      # 0x708c
xorl %eax, %eax
callq 0x2190
pushq $-0x1
popq %rdi
callq 0x2240
movq 0x970e(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4857(%rip), %rsi      # 0x714b
movq %r13, %rdx
xorl %eax, %eax
callq 0x2190
callq 0x2050