// File: /workspace/github_c_makefile_star2_O3/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 0x771d(%rip), %r14      # 0xe6ab
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11c0
leaq 0x7a96(%rip), %rdi      # 0xea40
movl $0x12, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11c0
movq 0xd5a8(%rip), %r13      # 0x14580
testq %r13, %r13
je 0x70c0
leaq 0x7a6b(%rip), %r14      # 0xea53
leaq 0x7a8d(%rip), %rbp      # 0xea7c
leaq 0x7a77(%rip), %r15      # 0xea6d
leaq 0x7a61(%rip), %r12      # 0xea5e
movl 0x10(%r13), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x18(%r13)
je 0x7041
movq 0x28(%r13), %rdx
testq %rdx, %rdx
je 0x702b
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x30(%r13), %rdx
testq %rdx, %rdx
je 0x7041
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x38(%r13)
je 0x7078
movq 0x48(%r13), %rdx
testq %rdx, %rdx
je 0x705e
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x50(%r13), %rdx
testq %rdx, %rdx
je 0x7078
movq %rbx, %rdi
leaq 0x7a1a(%rip), %rsi      # 0xea8b
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x58(%r13)
je 0x70b3
movq 0x68(%r13), %rdx
testq %rdx, %rdx
je 0x7099
movq %rbx, %rdi
leaq 0x7a08(%rip), %rsi      # 0xea9a
xorl %eax, %eax
callq 0x1110
movq 0x70(%r13), %rdx
testq %rdx, %rdx
je 0x70b3
movq %rbx, %rdi
leaq 0x79fd(%rip), %rsi      # 0xeaa9
xorl %eax, %eax
callq 0x1110
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x6ffd
movq 0xd4c1(%rip), %rdx      # 0x14588
leaq 0x79ea(%rip), %rsi      # 0xeab8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1110
leaq 0x79eb(%rip), %rdi      # 0xeaca
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x589b
leaq 0x75a9(%rip), %rdi      # 0xe6ab
movl $0x1f, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11c0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq