// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Uno/Src/uno_bounds.c
// Function: dfs_bound
int
dfs_bound(State *s, treenode *exp_in, treenode *t_cond, State *prev_s)
{	Trans *t;
	treenode *exp;
	int result = 1;

	if (!s) return result;

	depth++;
	if (debug)
	{	printf("%3d: dfs_bound %s:%d <%s>\n",
			depth,
			s->n->hdr.fnm,
			s->n->hdr.line,
			x_stmnt(exp_in));
	}

	switch (bound_push(s, exp_in, t_cond, prev_s)) {
	case 3:	/* unsatisfiable bound */
		result = 0;
		goto done;
	case 2:	
		if (debug) printf("\told state\n");
		goto done;
	case 1:
		if (debug) printf("\tnew state\n");
		break;
	case 0:
		if (debug) printf("\trevisit state\n");
		break;
	}

	uno_index(s);	/* attempt to find out of bound array indices */

	if (s->iscond && s->n)
	{	if (s->n->hdr.type == TN_IF)
			exp = ((if_node *)s->n)->cond;
		else
			exp = s->n;
	} else
		exp = ZT;

	for (t = s->succ; t && t->branch; t = t->nxt)
		if (!infeasible(exp, t->cond))	/* e.g. 0 == _true_ */
			dfs_bound(t->branch, exp, t->cond, s);

done:	bound_pop();

	if (debug)
		printf("%3d: dfs_bound up\n", depth);
	depth--;

	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x1, -0x3c(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x2c6c1
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x2c8bf
leaq 0x598d0(%rip), %rax     # 0x85f98
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x598c4(%rip), %rax     # 0x85f98
movl %ecx, (%rax)
cmpl $0x0, 0x6a47b(%rip)     # 0x96b58
je 0x2c72b
leaq 0x598b2(%rip), %rax     # 0x85f98
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
callq 0x4ec0
movl -0x4c(%rbp), %esi
movq -0x48(%rbp), %rdx
movl -0x40(%rbp), %ecx
movq %rax, %r8
leaq 0x19f11(%rip), %rdi     # 0x46635
movb $0x0, %al
callq 0x30f0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x2c8d0
movl %eax, %ecx
movq %rcx, -0x58(%rbp)
subl $0x3, %eax
ja 0x2c7b9
movq -0x58(%rbp), %rax
leaq 0x19bb2(%rip), %rcx     # 0x46308
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x3c(%rbp)
jmp 0x2c87f
cmpl $0x0, 0x6a3e6(%rip)     # 0x96b58
je 0x2c782
leaq 0x19ed5(%rip), %rdi     # 0x46650
movb $0x0, %al
callq 0x30f0
jmp 0x2c87f
cmpl $0x0, 0x6a3ca(%rip)     # 0x96b58
je 0x2c79e
leaq 0x19ec5(%rip), %rdi     # 0x4665c
movb $0x0, %al
callq 0x30f0
jmp 0x2c7b9
cmpl $0x0, 0x6a3b1(%rip)     # 0x96b58
je 0x2c7b7
leaq 0x19eb8(%rip), %rdi     # 0x46668
movb $0x0, %al
callq 0x30f0
jmp 0x2c7b9
movq -0x10(%rbp), %rdi
callq 0x2bf10
movq -0x10(%rbp), %rax
movswl 0x48(%rax), %eax
cmpl $0x0, %eax
je 0x2c804
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x2c804
movq -0x10(%rbp), %rax
movq (%rax), %rax
cmpl $0x1b, 0x1c(%rax)
jne 0x2c7f7
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x40(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x2c802
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x2c80c
movq $0x0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x30(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x30(%rbp)
movb %al, -0x59(%rbp)
je 0x2c833
movq -0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
setne %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x2c83c
jmp 0x2c87d
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rsi
callq 0x206d0
cmpl $0x0, %eax
jne 0x2c86d
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rcx
callq 0x2c690
jmp 0x2c86f
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x2c818
jmp 0x2c87f
callq 0x2cbf0
cmpl $0x0, 0x6a2cd(%rip)     # 0x96b58
je 0x2c8a4
leaq 0x59704(%rip), %rax     # 0x85f98
movl (%rax), %esi
leaq 0x19ddb(%rip), %rdi     # 0x46678
movb $0x0, %al
callq 0x30f0
leaq 0x596ed(%rip), %rax     # 0x85f98
movl (%rax), %ecx
addl $-0x1, %ecx
leaq 0x596e1(%rip), %rax     # 0x85f98
movl %ecx, (%rax)
movl -0x3c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)