// File: /workspace/github_c_makefile_star2_O1/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 0x7603(%rip), %r14      # 0xe6b9
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11d0
leaq 0x797a(%rip), %rdi      # 0xea4c
movl $0x12, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11d0
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x11d0
movq 0xd490(%rip), %r13      # 0x14590
testq %r13, %r13
je 0x71e8
leaq 0x794f(%rip), %r14      # 0xea5f
leaq 0x7971(%rip), %rbp      # 0xea88
leaq 0x795b(%rip), %r15      # 0xea79
leaq 0x7945(%rip), %r12      # 0xea6a
movl 0x10(%r13), %edx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1120
cmpl $0x0, 0x18(%r13)
je 0x7169
movq 0x28(%r13), %rdx
testq %rdx, %rdx
je 0x7153
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1120
movq 0x30(%r13), %rdx
testq %rdx, %rdx
je 0x7169
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1120
cmpl $0x0, 0x38(%r13)
je 0x71a0
movq 0x48(%r13), %rdx
testq %rdx, %rdx
je 0x7186
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1120
movq 0x50(%r13), %rdx
testq %rdx, %rdx
je 0x71a0
movq %rbx, %rdi
leaq 0x78fe(%rip), %rsi      # 0xea97
xorl %eax, %eax
callq 0x1120
cmpl $0x0, 0x58(%r13)
je 0x71db
movq 0x68(%r13), %rdx
testq %rdx, %rdx
je 0x71c1
movq %rbx, %rdi
leaq 0x78ec(%rip), %rsi      # 0xeaa6
xorl %eax, %eax
callq 0x1120
movq 0x70(%r13), %rdx
testq %rdx, %rdx
je 0x71db
movq %rbx, %rdi
leaq 0x78e1(%rip), %rsi      # 0xeab5
xorl %eax, %eax
callq 0x1120
movq 0x8(%r13), %r13
testq %r13, %r13
jne 0x7125
movq 0xd3a9(%rip), %rdx      # 0x14598
leaq 0x78ce(%rip), %rsi      # 0xeac4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1120
leaq 0x78cf(%rip), %rdi      # 0xead6
movl $0x8, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11d0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x599b
leaq 0x748f(%rip), %rdi      # 0xe6b9
movl $0x1f, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11d0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq