// File: /workspace/github_c_makefile_star2_O2/aquaxis[P]synverll/src/parser_ir_proc.c
// Function: print_proc_tree
int print_proc_tree(FILE *fp)
{
	PROC_TREE *now_proc_tree;

    fprintf(fp,"==============================\n");
    fprintf(fp,"Print - Proc Tree\n");
    fprintf(fp,"==============================\n");
    now_proc_tree = proc_tree_top;
    while(1){
        if(now_proc_tree == NULL) break;

		fprintf(fp,"Stage: %d\n", now_proc_tree->stage);

		if(now_proc_tree->seq_req.ena){
			if(now_proc_tree->seq_req.condision != NULL )	fprintf(fp," seq-c  ->\n%s\n", now_proc_tree->seq_req.condision);
			if(now_proc_tree->seq_req.body != NULL )		fprintf(fp," seq-b  ->\n%s\n", now_proc_tree->seq_req.body);
		}
		if(now_proc_tree->seq_wait.ena){
			if(now_proc_tree->seq_wait.condision != NULL )	fprintf(fp," wait-c ->\n%s\n", now_proc_tree->seq_wait.condision);
			if(now_proc_tree->seq_wait.body != NULL )		fprintf(fp," wait-b ->\n%s\n", now_proc_tree->seq_wait.body);
		}
		if(now_proc_tree->seq_exec.ena){
			if(now_proc_tree->seq_exec.condision != NULL )	fprintf(fp," exec-c ->\n%s\n", now_proc_tree->seq_exec.condision);
			if(now_proc_tree->seq_exec.body != NULL )		fprintf(fp," exec-b ->\n%s\n", now_proc_tree->seq_exec.body);
		}

        now_proc_tree = now_proc_tree->next_ptr;
    }

	fprintf(fp,"verilog_wire:\n%s\n", verilog_wire);

	fprintf(fp,"memory:\n");
	output_memory_tree(fp, 0);

    fprintf(fp,"==============================\n");

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6a5f(%rip), %r14      # 0xd6ab
pushq $0x1f
popq %r15
pushq $0x1
popq %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0x6db4(%rip), %rdi      # 0xda20
pushq $0x12
popq %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x11c0
leaq 0xc8ee(%rip), %r13      # 0x13580
leaq 0x6d9a(%rip), %r14      # 0xda33
leaq 0x6dbc(%rip), %rbp      # 0xda5c
leaq 0x6da6(%rip), %r15      # 0xda4d
leaq 0x6d90(%rip), %r12      # 0xda3e
movq (%r13), %r13
testq %r13, %r13
je 0x6d7a
movl 0x10(%r13), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x18(%r13)
je 0x6cff
movq 0x28(%r13), %rdx
testq %rdx, %rdx
je 0x6ce9
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x30(%r13), %rdx
testq %rdx, %rdx
je 0x6cff
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x38(%r13)
je 0x6d36
movq 0x48(%r13), %rdx
testq %rdx, %rdx
je 0x6d1c
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x50(%r13), %rdx
testq %rdx, %rdx
je 0x6d36
movq %rbx, %rdi
leaq 0x6d3c(%rip), %rsi      # 0xda6b
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x58(%r13)
je 0x6d71
movq 0x68(%r13), %rdx
testq %rdx, %rdx
je 0x6d57
movq %rbx, %rdi
leaq 0x6d2a(%rip), %rsi      # 0xda7a
xorl %eax, %eax
callq 0x1110
movq 0x70(%r13), %rdx
testq %rdx, %rdx
je 0x6d71
movq %rbx, %rdi
leaq 0x6d1f(%rip), %rsi      # 0xda89
xorl %eax, %eax
callq 0x1110
addq $0x8, %r13
jmp 0x6cae
movq 0xc807(%rip), %rdx      # 0x13588
leaq 0x6d10(%rip), %rsi      # 0xda98
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1110
leaq 0x6d11(%rip), %rdi      # 0xdaaa
pushq $0x8
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5624
leaq 0x68ef(%rip), %rdi      # 0xd6ab
pushq $0x1f
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11c0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq