// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
testq %rdi, %rdi
je 0x3150
movq %rdi, %r13
movq (%rdi), %rbx
testq %rbx, %rbx
je 0x3150
movq 0x18(%rbx), %r15
testq %r15, %r15
jne 0x30db
pushq $0x20
popq %rdi
callq 0x129c
movq %rax, %r15
movq %rax, 0x18(%rbx)
movq 0x5186(%rip), %rbp      # 0x8268
movb 0x8(%rbp), %cl
pushq $0x1
popq %rdx
shll %cl, %edx
movq 0x10(%r15), %rax
movslq %edx, %rcx
testq %rcx, %rax
je 0x3163
movq 0x61fb(%rip), %r14      # 0x92f8
movq 0x8(%r15), %rax
orq %r14, %rax
je 0x316f
addq $0x8, %r15
xorl %ebp, %ebp
pushq $0x10
popq %r12
testq %r14, %r14
je 0x3183
movq %r15, %rcx
movq (%rcx), %rax
testq %rax, %rax
je 0x312f
movq 0x8(%r14), %rdx
leaq 0x8(%rax), %rcx
cmpq (%rax), %rdx
jne 0x3118
jmp 0x314a
movq %r12, %rdi
callq 0x129c
movq 0x8(%r14), %rcx
movq %rcx, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%r15)
incl %ebp
movq 0x10(%r14), %r14
jmp 0x3110
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x33f9
orq %rcx, %rax
movq %rax, 0x10(%r15)
jmp 0x322a
cmpw $0x0, 0x18(%r15)
jne 0x3196
movw $0x1, 0x18(%r15)
jmp 0x322a
testl %ebp, %ebp
jne 0x322a
movq 0x18(%rbx), %r15
movq 0x50d2(%rip), %rbp      # 0x8268
cmpq $0x0, (%r15)
jne 0x31a7
cmpq $0x0, 0x10(%rbp)
je 0x33e5
movq %r13, (%rsp)
addq $0x10, %rbp
xorl %r14d, %r14d
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x321d
movq %r15, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x31ec
movq (%r13), %r12
movq (%r12), %rdi
movq (%rbp), %rsi
callq 0x10f0
testl %eax, %eax
jne 0x31e6
movl 0x18(%r12), %eax
cmpl 0x18(%rbp), %eax
je 0x3217
addq $0x8, %r13
jmp 0x31be
pushq $0x10
popq %rdi
callq 0x129c
movq %rax, %r13
movq (%rbp), %rdi
callq 0x2a06
movq %rax, (%r13)
movl 0x18(%rbp), %ecx
movl %ecx, 0x18(%rax)
movq (%r15), %rax
movq %rax, 0x8(%r13)
movq %r13, (%r15)
incl %r14d
addq $0x20, %rbp
jmp 0x31b2
testl %r14d, %r14d
movq (%rsp), %r13
je 0x33d6
movq 0x60d7(%rip), %r15      # 0x9308
testq %r15, %r15
je 0x3259
movq 0x38(%r15), %rax
movq %rax, 0x60c7(%rip)      # 0x9308
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r15)
movups %xmm0, 0x20(%r15)
movups %xmm0, 0x10(%r15)
movups %xmm0, (%r15)
jmp 0x3264
pushq $0x40
popq %rdi
callq 0x129c
movq %rax, %r15
movq %r13, (%r15)
movq 0x4ffa(%rip), %r14      # 0x8268
movzwl 0x8(%r14), %eax
movw %ax, 0x8(%r15)
addq $0x10, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x32b2
movq (%r14), %rdi
callq 0x2a06
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
andl $0x0, 0x10(%rax)
movq 0x14(%r14), %rcx
movq %rcx, 0x14(%rax)
movq 0x10(%r15), %rcx
movq %rcx, 0x20(%rax)
movq %rax, 0x10(%r15)
addq $0x20, %r14
jmp 0x327c
movq 0x4faf(%rip), %r14      # 0x8268
addq $0x18, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x32df
movq (%r14), %rdi
callq 0x4330
movq 0x18(%r15), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x18(%r15)
addq $0x8, %r14
jmp 0x32bd
movq 0x4f82(%rip), %rax      # 0x8268
movq %rax, 0x38(%r15)
movq %r15, 0x4f77(%rip)      # 0x8268
incl 0x6009(%rip)            # 0x9300
movq 0x5fea(%rip), %rsi      # 0x92e8
movq %rbx, %rdi
callq 0x347b
testl %eax, %eax
je 0x3382
xorl %ebp, %ebp
movq %rbx, %r14
movq 0x8(%r14), %r14
testq %r14, %r14
je 0x335c
movq (%r14), %rdi
addq $0x2, %rdi
movq %rdi, %r15
movzbl (%r15), %eax
testl %eax, %eax
je 0x330f
cmpl $0x20, %eax
je 0x3334
incq %r15
jmp 0x3322
movb $0x0, (%r15)
callq 0x2882
movb $0x20, (%r15)
testq %rax, %rax
je 0x330f
cmpw $0x0, 0x18(%rax)
jne 0x330f
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2bdc
incl %ebp
jmp 0x330f
testl %ebp, %ebp
jne 0x3382
cmpq $0x0, 0x10(%rbx)
jne 0x3376
callq 0x33f9
jmp 0x3376
movq %rbx, %rdi
callq 0x30a0
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x336e
decl 0x5f78(%rip)            # 0x9300
movq 0x4ed9(%rip), %rbx      # 0x8268
movq 0x10(%rbx), %rdi
callq 0x4214
movq 0x4ec9(%rip), %rax      # 0x8268
andq $0x0, 0x10(%rax)
movq 0x18(%rax), %rdi
callq 0x42a2
movq 0x4eb4(%rip), %rax      # 0x8268
andq $0x0, 0x18(%rax)
movq 0x38(%rax), %rax
movq %rax, 0x4ea4(%rip)      # 0x8268
movq 0x5f3d(%rip), %rax      # 0x9308
movq %rax, 0x38(%rbx)
movq %rbx, 0x5f32(%rip)      # 0x9308
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpw $0x0, 0x1a(%r15)
jne 0x33d6
movw $0x1, 0x1a(%r15)
jmp 0x322a