// File: /workspace/github_c_makefile_star2_O3/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 0x33b0
movq %rdi, %r13
movq (%rdi), %r12
testq %r12, %r12
je 0x33b0
movq 0x18(%r12), %r14
testq %r14, %r14
jne 0x3315
movl $0x20, %edi
callq 0x151c
movq %rax, %r14
movq %rax, 0x18(%r12)
movq 0x4f4c(%rip), %rdx      # 0x8268
movb 0x8(%rdx), %cl
movl $0x1, %esi
shll %cl, %esi
movq 0x10(%r14), %rax
movslq %esi, %rcx
testq %rcx, %rax
je 0x33c3
movq 0x8(%r14), %rax
movq 0x5fb7(%rip), %rbx      # 0x92f8
movq %rax, %rcx
orq %rbx, %rcx
je 0x33cf
testq %rbx, %rbx
je 0x33db
xorl %ebp, %ebp
testq %rax, %rax
je 0x3372
movq 0x8(%rbx), %rcx
movq %rax, %rdx
cmpq (%rdx), %rcx
je 0x3391
movq 0x8(%rdx), %rdx
testq %rdx, %rdx
jne 0x3364
movl $0x10, %edi
callq 0x151c
movq 0x8(%rbx), %rcx
movq %rcx, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x8(%r14)
incl %ebp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x3358
testl %ebp, %ebp
jne 0x348e
movq 0x18(%r12), %r14
movq 0x4eba(%rip), %rdx      # 0x8268
jmp 0x33db
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3676
orq %rcx, %rax
movq %rax, 0x10(%r14)
jmp 0x348e
cmpw $0x0, 0x18(%r14)
je 0x3487
movq %r14, (%rsp)
movq (%r14), %r14
movq 0x10(%rdx), %rbp
testq %r14, %r14
je 0x33f5
testq %rbp, %rbp
jne 0x33fe
jmp 0x3667
testq %rbp, %rbp
je 0x35e7
movq %r13, 0x8(%rsp)
movq %r12, 0x10(%rsp)
xorl %ebx, %ebx
testq %r14, %r14
je 0x343c
movq (%rbp), %r13
movq %r14, %r12
movq (%r12), %r15
movq (%r15), %rdi
movq %r13, %rsi
callq 0x10f0
testl %eax, %eax
jne 0x3432
movl 0x18(%r15), %eax
cmpl 0x18(%rbp), %eax
je 0x346b
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x3416
movl $0x10, %edi
callq 0x151c
movq %rax, %r14
movq (%rbp), %rdi
callq 0x2cbd
movq %rax, (%r14)
movl 0x18(%rbp), %ecx
movl %ecx, 0x18(%rax)
movq (%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x8(%r14)
movq %r14, (%rcx)
incl %ebx
movq 0x20(%rbp), %rbp
testq %rbp, %rbp
jne 0x340a
testl %ebx, %ebx
movq 0x10(%rsp), %r12
movq 0x8(%rsp), %r13
jne 0x348e
jmp 0x3667
movw $0x1, 0x18(%r14)
movq 0x5e73(%rip), %r15      # 0x9308
testq %r15, %r15
je 0x34bd
movq 0x38(%r15), %rax
movq %rax, 0x5e63(%rip)      # 0x9308
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
jmp 0x34ca
movl $0x40, %edi
callq 0x151c
movq %rax, %r15
movq %r13, (%r15)
movq 0x4d94(%rip), %rax      # 0x8268
movzwl 0x8(%rax), %ecx
movw %cx, 0x8(%r15)
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x3521
movq (%rbx), %rdi
callq 0x2cbd
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq 0x14(%rbx), %rcx
movq %rcx, 0x14(%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x20(%rax)
movq %rax, 0x10(%r15)
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x34e6
movq 0x4d47(%rip), %rax      # 0x8268
movq 0x18(%rax), %rbx
testq %rbx, %rbx
je 0x354e
movq (%rbx), %rdi
callq 0x46ab
movq 0x18(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x18(%r15)
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x352a
movq 0x4d1a(%rip), %rax      # 0x8268
movq %rax, 0x38(%r15)
movq %r15, 0x4d0f(%rip)      # 0x8268
incl 0x5da1(%rip)            # 0x9300
movq 0x5d82(%rip), %rsi      # 0x92e8
movq %r12, %rdi
callq 0x36fb
testl %eax, %eax
je 0x3612
movq 0x8(%r12), %rbx
testq %rbx, %rbx
je 0x35d1
xorl %ebp, %ebp
movq (%rbx), %rdi
addq $0x2, %rdi
movq %rdi, %r14
movzbl (%r14), %eax
testl %eax, %eax
je 0x35c4
cmpl $0x20, %eax
je 0x359e
incq %r14
jmp 0x358c
movb $0x0, (%r14)
callq 0x2b3a
movb $0x20, (%r14)
testq %rax, %rax
je 0x35c4
cmpw $0x0, 0x18(%rax)
jne 0x35c4
movq %rax, %rdi
movq %r12, %rsi
callq 0x2e74
incl %ebp
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
jne 0x3582
testl %ebp, %ebp
jne 0x3612
movq 0x10(%r12), %r14
testq %r14, %r14
jne 0x3601
callq 0x3676
movq 0x10(%r12), %r14
jmp 0x360d
movq (%rsp), %rax
cmpw $0x0, 0x1a(%rax)
jne 0x3667
movq (%rsp), %rax
movw $0x1, 0x1a(%rax)
jmp 0x348e
movq %r14, %rdi
callq 0x32d3
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x3601
decl 0x5ce8(%rip)            # 0x9300
movq 0x4c49(%rip), %rbx      # 0x8268
movq 0x10(%rbx), %rdi
callq 0x4585
movq 0x4c39(%rip), %rax      # 0x8268
xorl %r14d, %r14d
movq %r14, 0x10(%rax)
movq 0x18(%rax), %rdi
callq 0x4618
movq 0x4c22(%rip), %rax      # 0x8268
movq %r14, 0x18(%rax)
movq 0x38(%rax), %rax
movq %rax, 0x4c13(%rip)      # 0x8268
movq 0x5cac(%rip), %rax      # 0x9308
movq %rax, 0x38(%rbx)
movq %rbx, 0x5ca1(%rip)      # 0x9308
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq