// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/infer.c
// Function: ctxstr
static char *
ctxstr(Node *n)
{
	char *t, *t1, *t2, *t3;
	char *s, *d;
	size_t nargs;
	Node **args;
	char buf[512];

	if (!n)
		return strdup("???");
	switch (n->type) {
	default:
		s = strdup(nodestr[n->type]);
		break;
	case Ndecl:
		 d = declname(n);
		 t = nodetystr(n);
		 bprintf(buf, sizeof buf, "%s:%s", d, t);
		 s = strdup(buf);
		 free(t);
		 break;
	case Nname:	s = strdup(namestr(n));	break;
	case Nexpr:
		args = n->expr.args;
		nargs = n->expr.nargs;
		t1 = NULL;
		t2 = NULL;
		t3 = NULL;
		if (exprop(n) == Ovar)
			d = namestr(args[0]);
		else
			d = opstr[exprop(n)];
		t = nodetystr(n);
		if (nargs >= 1)
			t1 = nodetystr(args[0]);
		if (nargs >= 2)
			t2 = nodetystr(args[1]);
		if (nargs >= 3)
			t3 = nodetystr(args[2]);

		switch (opclass[exprop(n)]) {
		case OTpre:	bprintf(buf, sizeof buf, "%s<e:%s>", oppretty[exprop(n)], t1);	break;
		case OTpost:	bprintf(buf, sizeof buf, "<e:%s>%s", t1, oppretty[exprop(n)]);	break;
		case OTzarg:	bprintf(buf, sizeof buf, "%s", oppretty[exprop(n)]);	break;
		case OTbin:
			bprintf(buf, sizeof buf, "<e1:%s> %s <e2:%s>", t1, oppretty[exprop(n)], t2);
			break;
		case OTmisc:
			switch (exprop(n)) {
			case Ovar:	bprintf(buf, sizeof buf, "%s:%s", namestr(args[0]), t);	break;
			case Ocall:	ctxstrcall(buf, sizeof buf,n);	break;
			case Oidx:
				if (exprop(args[0]) == Ovar)
					bprintf(buf, sizeof buf, "%s[<e1:%s>]", namestr(args[0]->expr.args[0]), t2);
				else
					bprintf(buf, sizeof buf, "<sl:%s>[<e1%s>]", t1, t2);
				break;
			case Oslice:
				if (exprop(args[0]) == Ovar)
					bprintf(buf, sizeof buf, "%s[<e1:%s>:<e2:%s>]", namestr(args[0]->expr.args[0]), t2, t3);
				else
					bprintf( buf, sizeof buf, "<sl:%s>[<e1%s>:<e2:%s>]", t1, t2, t3);
				break;
			case Omemb:
				bprintf(buf, sizeof buf, "<%s>.%s", t1, namestr(args[1]));
				break;
			case Otupmemb:
				bprintf(buf, sizeof buf, "<%s>.%llu", t1, args[1]->lit.intval);
				break;
			default:
				bprintf(buf, sizeof buf, "%s:%s", d, t);
				break;
			}
			break;
		default: bprintf(buf, sizeof buf, "%s", d); break;
		}
		free(t);
		free(t1);
		free(t2);
		free(t3);
		s = strdup(buf);
		break;
	}
	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
testq %rdi, %rdi
je 0x1801d
movq %rdi, %r13
movl 0x8(%rdi), %eax
cmpq $0x8, %rax
je 0x18033
cmpl $0xa, %eax
je 0x18026
cmpl $0xb, %eax
jne 0x18055
movq %r13, %rdi
callq 0x1befe
movq %rax, %rbx
movq %r13, %rdi
callq 0x1855f
movq %rax, %r14
leaq 0x1b26f(%rip), %rdx     # 0x3325a
leaq 0x30(%rsp), %r15
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2a9bf
movq %r15, %rdi
callq 0x4340
movq %rax, %rbx
movq %r14, %rdi
callq 0x4040
jmp 0x183c8
leaq 0x19ebc(%rip), %rdi     # 0x31ee0
jmp 0x18060
movq %r13, %rdi
callq 0x1c0c8
movq %rax, %rdi
jmp 0x18060
movq 0x40(%r13), %r14
movq 0x50(%r13), %rbx
movq %r13, %rdi
callq 0x1b5e6
cmpl $0x33, %eax
jne 0x18076
movq (%rbx), %rdi
callq 0x1c0c8
movq %rax, %rbp
jmp 0x1808b
leaq 0x45c44(%rip), %rcx     # 0x5dca0
movq (%rcx,%rax,8), %rdi
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4340
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x45319(%rip), %rcx     # 0x5d3a0
movq (%rcx,%rax,8), %rbp
movq %r13, %rdi
callq 0x1855f
movq %rax, %r15
testq %r14, %r14
je 0x180b1
movq (%rbx), %rdi
callq 0x1855f
movq %rax, %r12
cmpq $0x1, %r14
jne 0x180c2
xorl %r14d, %r14d
jmp 0x180b7
xorl %r14d, %r14d
xorl %r12d, %r12d
movq $0x0, 0x8(%rsp)
jmp 0x18106
movq %rbp, 0x10(%rsp)
movq %r12, %rbp
movq %r15, %r12
movq 0x8(%rbx), %rdi
callq 0x1855f
movq %rax, %r15
cmpq $0x3, %r14
jb 0x180ef
movq 0x10(%rbx), %rdi
callq 0x1855f
movq %rax, 0x8(%rsp)
jmp 0x180f8
movq $0x0, 0x8(%rsp)
movq %r15, %r14
movq %r12, %r15
movq %rbp, %r12
movq 0x10(%rsp), %rbp
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x45a09(%rip), %rcx     # 0x5db20
movl (%rcx,%rax,4), %eax
cmpq $0x4, %rax
ja 0x18250
leaq 0x19905(%rip), %rcx     # 0x31a30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r13, %rdi
callq 0x1b5e6
addl $-0x28, %eax
cmpl $0xb, %eax
ja 0x182b3
leaq 0x198f5(%rip), %rcx     # 0x31a44
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rdi
callq 0x1b5e6
cmpl $0x33, %eax
jne 0x18378
movq (%rbx), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x1c0c8
leaq 0x19d8a(%rip), %rdx     # 0x31f09
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rax, %rcx
jmp 0x1838c
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x454fe(%rip), %rcx     # 0x5d6a0
movq (%rcx,%rax,8), %rcx
leaq 0x1a8f0(%rip), %rdx     # 0x32a9d
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
jmp 0x18264
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x454d3(%rip), %rcx     # 0x5d6a0
movq (%rcx,%rax,8), %r8
leaq 0x19d15(%rip), %rdx     # 0x31eed
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %rcx
jmp 0x1838f
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x454a5(%rip), %rcx     # 0x5d6a0
movq (%rcx,%rax,8), %r8
leaq 0x19cf0(%rip), %rdx     # 0x31ef6
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %rcx
movq %r14, %r9
xorl %eax, %eax
callq 0x2a9bf
jmp 0x18396
movq %r13, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x4546d(%rip), %rcx     # 0x5d6a0
movq (%rcx,%rax,8), %rcx
leaq 0x19ca6(%rip), %rdx     # 0x31ee4
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %r8
jmp 0x1838f
leaq 0x1a846(%rip), %rdx     # 0x32a9d
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rcx
xorl %eax, %eax
callq 0x2a9bf
jmp 0x18396
movq 0x8(%rbx), %rdi
callq 0x1c0c8
leaq 0x19cd1(%rip), %rdx     # 0x31f51
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %rcx
movq %rax, %r8
jmp 0x1838f
movq (%rbx), %rdi
callq 0x1c0c8
leaq 0x1afb6(%rip), %rdx     # 0x3325a
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rax, %rcx
jmp 0x182c7
leaq 0x1afa0(%rip), %rdx     # 0x3325a
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rcx
movq %r15, %r8
jmp 0x1838f
movq (%rbx), %rdi
callq 0x1b5e6
cmpl $0x33, %eax
jne 0x183dd
movq (%rbx), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x1c0c8
leaq 0x19c2f(%rip), %rdx     # 0x31f25
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rax, %rcx
jmp 0x183f1
movq 0x8(%rbx), %rax
movq 0x30(%rax), %r8
leaq 0x19c42(%rip), %rdx     # 0x31f59
jmp 0x181d8
movq %r14, 0x18(%rsp)
movq 0x40(%r13), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%r13), %r14
movq (%r14), %rdi
callq 0x1b5e6
cmpl $0x33, %eax
movq %r15, 0x28(%rsp)
movq %r12, 0x20(%rsp)
jne 0x18405
movq (%r14), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x1c0c8
leaq 0x19c0c(%rip), %rdx     # 0x31f6b
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %rax, %rcx
xorl %eax, %eax
callq 0x2a9bf
jmp 0x1841d
leaq 0x19b96(%rip), %rdx     # 0x31f15
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2a9bf
movq 0x8(%rsp), %rbx
movq %r15, %rdi
callq 0x4040
movq %r12, %rdi
callq 0x4040
movq %r14, %rdi
callq 0x4040
movq %rbx, %rdi
callq 0x4040
leaq 0x30(%rsp), %rdi
callq 0x4340
movq %rax, %rbx
movq %rbx, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19b55(%rip), %rdx     # 0x31f39
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
movq %r12, %rcx
movq %r14, %r8
movq 0x8(%rsp), %rbx
movq %rbx, %r9
xorl %eax, %eax
callq 0x2a9bf
jmp 0x1839b
leaq 0x19b63(%rip), %rdx     # 0x31f6f
leaq 0x30(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
callq 0x2a9bf
leaq (%rsp,%rax), %rbp
addq $0x30, %rbp
leaq 0x15a1e(%rip), %r12     # 0x2de4a
pushq $0x1
popq %rbx
cmpq 0x10(%rsp), %rbx
jae 0x184e3
movq (%r14,%rbx,8), %rdi
callq 0x1bf90
xorl %edi, %edi
movq %rax, %rsi
pushq $0x1
popq %rdx
callq 0x185d2
testq %rax, %rax
je 0x1845f
movq %rax, %rdi
callq 0x21009
jmp 0x1846b
leaq 0x19a7c(%rip), %rdi     # 0x31ee2
callq 0x4340
movq %rax, %r15
movq (%r14,%rbx,8), %rdi
callq 0x1b5e6
leaq 0x230(%rsp), %r13
subq %rbp, %r13
cmpl $0x33, %eax
jne 0x184ac
movq (%r14,%rbx,8), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x1c0c8
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x19ad0(%rip), %rdx     # 0x31f74
movq %r12, %rcx
movq %rax, %r8
jmp 0x184bf
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x19ac3(%rip), %rdx     # 0x31f7c
movq %r12, %rcx
movq %rbx, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x2a9bf
addq %rax, %rbp
movq %r15, %rdi
callq 0x4040
incq %rbx
leaq 0x19aaa(%rip), %r12     # 0x31f88
jmp 0x1842f
movq (%r14), %rdi
callq 0x1bf90
cmpq $0x0, 0x70(%rax)
je 0x18515
movq (%r14), %rdi
callq 0x1bf90
movq 0x68(%rax), %rax
movq (%rax), %rsi
pushq $0x1
popq %rdx
xorl %edi, %edi
callq 0x185d2
movq %rax, %rdi
callq 0x21009
jmp 0x18521
leaq 0x19a47(%rip), %rdi     # 0x31f63
callq 0x4340
movq %rax, %rbx
movq 0x28(%rsp), %r15
movq 0x20(%rsp), %r12
movq 0x18(%rsp), %r14
leaq 0x230(%rsp), %rsi
subq %rbp, %rsi
leaq 0x19a46(%rip), %rdx     # 0x31f8b
movq %rbp, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2a9bf
movq %rbx, %rdi
callq 0x4040
jmp 0x18396