// File: /workspace/github_c_makefile_star2_O1/nimble-code[P]Uno/Src/uno_fcts.c
// Function: check_prop
static void
check_prop(Arc	*in)
{	Stack	*os;
	BFct	*f;
	Label	*n;
	Arc	*a;
	Node	*sys;
	int	hit;

	if (!in || !in->to)
	{	end_of_path();	/* find continuations in callstack */
		return;
	}

	sys = in->to;

	if (same_state(in))
	{	if (debug)
		printf("\tREVISIT nid %d state_bits %lu - callpt %d\n",
			sys->nid,
			sys->vis->uno_state,	/* bit mask */
			(rstack && rstack->n)?rstack->n->nid:-1);
		return;
	}

	depth++;

	if (debug)
	printf("%3d: [%d, %d] callpt %d -- %s\n", depth, sys?sys->nid:0,
		stack->uno_state,
		(rstack && rstack->n)?rstack->n->nid:-1,
		(sys && sys->lab)?(char *) sys->lab->label:"--");

	if (debug) printf("%3d: evalprop starts (%p)\n", depth, prop_start);

	if (!eval_prop(sys, prop_start))		/* complains on errors */
		goto done;

	if (debug) printf("%3d: evalprop ended\n", depth);

	hit = 0;
	for (n = sys->lab; n; n = n->nxt)		/* check tags on current state */
	{	f = fct_in_lab((char *) n->label);		/* to find all fct calls */
		if (f && !f->visited)			/* effect not already in call chain */
		{	if (debug) printf("%3d:\tCALL to %s [%d]\n", depth, f->fnm, sys->nid);
			do_fct_call(f, sys);
			if (debug) printf("%3d:\tUN_CALL %s [%d]\n", depth, f->fnm, sys->nid);
			hit++;	/* continuation is explored on return from fct */
	}	}
	if (hit) goto done;

	if (!sys->succ) end_of_path();

	for (a = sys->succ; a; a = a->nxt)		/* explore all next states */
	{	if (debug)
		{ printf("%3d:\tDOWN (uno_state=%d)\n", depth, stack->uno_state); list_sel(); }
		check_prop(a);	/* are explored */
		if (debug)
		{ printf("%3d:\tUP (uno_state=%d)\n", depth, stack->uno_state); list_sel(); }
	}
done:
	depth--;
	os = stack;
	stack->sels = rev_release(stack->sels);
	stack->knz  = rev_symrel(stack->knz);
	stack = stack->nxt;
	os->nxt = free_stack;
	free_stack = os;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x32ed
movq %rdi, %r14
movq (%rdi), %rbp
testq %rbp, %rbp
je 0x32ed
cmpq $0x0, 0x18(%rbp)
jne 0x3253
movl $0x20, %edi
callq 0x151c
movq %rax, 0x18(%rbp)
movq 0x500e(%rip), %rax      # 0x8268
movb 0x8(%rax), %cl
movl $0x1, %edx
shll %cl, %edx
movq 0x18(%rbp), %r15
movq 0x10(%r15), %rax
movslq %edx, %rcx
testq %rcx, %rax
je 0x3300
movq 0x6079(%rip), %r12      # 0x92f8
movq 0x8(%r15), %rax
orq %r12, %rax
je 0x330c
testq %r12, %r12
je 0x3318
movq %rbp, %rbx
xorl %ebp, %ebp
movq 0x8(%r15), %rax
testq %rax, %rax
je 0x32b6
movq 0x8(%r12), %rcx
cmpq (%rax), %rcx
je 0x32d6
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x32a8
movl $0x10, %edi
callq 0x151c
movq 0x8(%r12), %rcx
movq %rcx, (%rax)
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r15)
incl %ebp
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x329a
testl %ebp, %ebp
movq %rbx, %rbp
jne 0x33d8
jmp 0x3318
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x35b9
orq %rcx, %rax
movq %rax, 0x10(%r15)
jmp 0x33d8
cmpw $0x0, 0x18(%r15)
je 0x33d1
movq 0x18(%rbp), %r12
cmpq $0x0, (%r12)
jne 0x3335
movq 0x4f3e(%rip), %rax      # 0x8268
cmpq $0x0, 0x10(%rax)
je 0x35a3
movq 0x4f2c(%rip), %rax      # 0x8268
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x3571
movq %r14, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
xorl %ebp, %ebp
movq (%r12), %rbx
testq %rbx, %rbx
je 0x3387
movq (%r13), %r15
movq (%rbx), %r14
movq (%r14), %rdi
movq %r15, %rsi
callq 0x10e0
testl %eax, %eax
jne 0x337e
movl 0x18(%r14), %eax
cmpl 0x18(%r13), %eax
je 0x33b5
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x3362
movl $0x10, %edi
callq 0x151c
movq %rax, %r15
movq (%r13), %rdi
callq 0x2bfe
movq %rax, (%r15)
movl 0x18(%r13), %ecx
movl %ecx, 0x18(%rax)
movq (%r12), %rax
movq %rax, 0x8(%r15)
movq %r15, (%r12)
incl %ebp
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x3355
testl %ebp, %ebp
movq 0x10(%rsp), %rbp
movq 0x8(%rsp), %r14
jne 0x33d8
jmp 0x3571
movw $0x1, 0x18(%r15)
movq 0x5f29(%rip), %r15      # 0x9308
testq %r15, %r15
je 0x3407
movq 0x38(%r15), %rax
movq %rax, 0x5f19(%rip)      # 0x9308
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
jmp 0x3414
movl $0x40, %edi
callq 0x151c
movq %rax, %r15
movq %r14, (%r15)
movq 0x4e4a(%rip), %rax      # 0x8268
movzwl 0x8(%rax), %ecx
movw %cx, 0x8(%r15)
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x3465
movq (%rbx), %rdi
callq 0x2bfe
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x10(%rax)
movl 0x14(%rbx), %ecx
movl %ecx, 0x14(%rax)
movl 0x18(%rbx), %ecx
movl %ecx, 0x18(%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x20(%rax)
movq %rax, 0x10(%r15)
movq 0x20(%rbx), %rbx
jmp 0x342b
movq 0x4dfc(%rip), %rax      # 0x8268
movq 0x18(%rax), %rbx
testq %rbx, %rbx
je 0x348f
movq (%rbx), %rdi
callq 0x462b
movq 0x18(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x18(%r15)
movq 0x8(%rbx), %rbx
jmp 0x3470
movq 0x4dd2(%rip), %rax      # 0x8268
movq %rax, 0x38(%r15)
movq %r15, 0x4dc7(%rip)      # 0x8268
incl 0x5e59(%rip)            # 0x9300
movq 0x5e3a(%rip), %rsi      # 0x92e8
movq %rbp, %rdi
callq 0x363e
testl %eax, %eax
je 0x351c
movq 0x8(%rbp), %r14
testq %r14, %r14
je 0x3580
xorl %r15d, %r15d
movq (%r14), %rdi
addq $0x2, %rdi
movq %rdi, %rbx
movzbl (%rbx), %eax
testl %eax, %eax
je 0x34f2
cmpl $0x20, %eax
je 0x34e5
incq %rbx
jmp 0x34d4
movb $0x0, (%rbx)
callq 0x2a92
movb $0x20, (%rbx)
jmp 0x34f4
xorl %eax, %eax
testq %rax, %rax
je 0x350e
cmpw $0x0, 0x18(%rax)
jne 0x350e
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2db9
incl %r15d
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x34ca
testl %r15d, %r15d
je 0x3580
decl 0x5dde(%rip)            # 0x9300
movq 0x4d3f(%rip), %rbx      # 0x8268
movq 0x10(%rbx), %rdi
callq 0x4505
movq 0x4d2f(%rip), %rax      # 0x8268
xorl %r14d, %r14d
movq %r14, 0x10(%rax)
movq 0x18(%rax), %rdi
callq 0x4598
movq 0x4d18(%rip), %rax      # 0x8268
movq %r14, 0x18(%rax)
movq 0x38(%rax), %rax
movq %rax, 0x4d09(%rip)      # 0x8268
movq 0x5da2(%rip), %rax      # 0x9308
movq %rax, 0x38(%rbx)
movq %rbx, 0x5d97(%rip)      # 0x9308
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x10(%rbp)
jne 0x358c
callq 0x35b9
movq 0x10(%rbp), %rbx
testq %rbx, %rbx
je 0x351c
movq %rbx, %rdi
callq 0x3218
movq 0x10(%rbx), %rbx
jmp 0x3590
cmpw $0x0, 0x1a(%r12)
jne 0x3571
movw $0x1, 0x1a(%r12)
jmp 0x33d8