urbit/j/6/ut_nest.c

489 lines
13 KiB
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/6/ut_nest.c
**
** This file is in the public domain.
*/
#include "all.h"
2014-09-04 07:10:43 +04:00
2013-09-29 00:21:18 +04:00
/* logic
*/
/* forward
*/
2014-09-06 00:13:24 +04:00
static u3_bean
_nest_sint(u3_noun, u3_noun, u3_bean, u3_noun, u3_noun);
static u3_bean
_nest_dext(u3_noun, u3_noun, u3_bean, u3_noun, u3_noun);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
static u3_bean
2014-08-21 01:18:34 +04:00
_nest_cram(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun dab,
u3_noun hem,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
if ( u3_nul == dab ) {
return u3_cr_sing(u3_nul, hem);
} else if ( u3_nul == hem ) {
return u3_no;
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
u3_noun n_dab, l_dab, r_dab;
u3_noun n_hem, l_hem, r_hem;
u3_noun pn_hem, qn_hem, pn_dab, qn_dab;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_cx_trel(dab, &n_dab, &l_dab, &r_dab);
u3_cx_trel(hem, &n_hem, &l_hem, &r_hem);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_no == _nest_cram
2014-08-21 01:18:34 +04:00
(van, sut, tel, ref, l_dab, l_hem, gil)) ||
2014-09-06 00:13:24 +04:00
(u3_no == _nest_cram
2014-08-21 01:18:34 +04:00
(van, sut, tel, ref, r_dab, r_hem, gil)) ) {
2014-09-06 00:13:24 +04:00
return u3_no;
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
u3_cx_cell(n_dab, &pn_dab, &qn_dab);
u3_cx_cell(n_hem, &pn_hem, &qn_hem);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_sing(pn_dab, pn_hem) ) {
return u3_no;
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3du(qn_dab)) || (u3_no == u3du(qn_hem)) ) {
return u3_cm_bail(c3__fail);
}
2014-09-06 00:13:24 +04:00
else switch ( u3h(qn_dab) ) {
default: return u3_cm_bail(c3__exit);
2013-09-29 00:21:18 +04:00
case c3__ash: {
2014-09-06 00:13:24 +04:00
if ( c3__ash != u3h(qn_hem) ) {
return u3_no;
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
u3_noun pqn_dab = u3t(qn_dab);
u3_noun pqn_hem = u3t(qn_hem);
u3_noun vis = u3_cqfu_play(van, sut, pqn_dab);
u3_noun lon = u3_cqfu_play(van, ref, pqn_hem);
u3_bean ret = _nest_dext(van, vis, tel, lon, gil);
u3z(vis);
u3z(lon);
2013-09-29 00:21:18 +04:00
return ret;
}
}
case c3__elm: {
2014-09-06 00:13:24 +04:00
return u3_cr_sing(qn_dab, qn_hem);
2013-09-29 00:21:18 +04:00
}
}
}
}
}
2014-09-06 00:13:24 +04:00
static u3_bean
2014-09-07 00:39:13 +04:00
_nest_cong(u3_noun van,
2014-09-06 00:13:24 +04:00
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun p_sut, q_sut, p_ref, q_ref;
u3_noun pq_sut, qq_sut, rq_sut;
u3_noun pq_ref, qq_ref, rq_ref;
u3_noun prq_sut, qrq_sut, prq_ref, qrq_ref;
u3_bean ret;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_cx_trel(sut, 0, &p_sut, &q_sut);
u3_cx_trel(ref, 0, &p_ref, &q_ref);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_cx_trel(q_sut, &pq_sut, &qq_sut, &rq_sut);
u3_cx_trel(q_ref, &pq_ref, &qq_ref, &rq_ref);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_cx_cell(rq_sut, &prq_sut, &qrq_sut);
u3_cx_cell(rq_ref, &prq_ref, &qrq_ref);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( u3_yes == u3_cr_sing(q_sut, q_ref) ) {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, p_sut, tel, p_ref, gil);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
else if ( (u3_no == _nest_dext(van, qq_sut, tel, p_sut, gil)) ||
(u3_no == _nest_dext(van, p_sut, tel, qq_sut, gil)) ||
(u3_no == _nest_dext(van, qq_ref, tel, p_ref, gil)) )
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3_no;
2013-09-29 00:21:18 +04:00
}
else {
if ( (pq_sut != pq_ref) && (c3__gold != pq_ref) ) {
2014-09-06 00:13:24 +04:00
return u3_no;
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
u3_noun hud = u3nc(u3k(sut), u3k(ref));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cqdi_has(gil, hud)) ) {
u3z(hud);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_yes;
}
2013-09-29 00:21:18 +04:00
else {
2014-09-06 00:13:24 +04:00
u3_noun zoc = u3_cqdi_put(gil, hud);
u3_noun tus = u3nt(c3__core,
u3k(qq_sut),
u3k(q_sut));
u3_noun fer = u3nt(c3__core,
u3k(qq_ref),
u3k(q_ref));
2014-08-21 01:18:34 +04:00
ret = _nest_cram(van, tus, tel, fer, qrq_sut, qrq_ref, zoc);
2014-09-06 00:13:24 +04:00
u3z(fer);
u3z(tus);
u3z(zoc);
u3z(hud);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( u3_no == ret ) {
return u3_no;
2013-09-29 00:21:18 +04:00
}
else {
switch ( pq_sut ) {
2014-09-06 00:13:24 +04:00
default: return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
case c3__gold: {
return
2014-09-06 00:13:24 +04:00
u3_and(_nest_dext(van, qq_sut, tel, qq_ref, gil),
2014-08-21 01:18:34 +04:00
_nest_dext(van, qq_ref, tel, qq_sut, gil));
2013-09-29 00:21:18 +04:00
}
case c3__iron: {
2014-09-06 00:13:24 +04:00
u3_noun s_sam = u3_cqfu_peek
2014-08-21 01:18:34 +04:00
(van, qq_sut, c3__rite, 2);
2014-09-06 00:13:24 +04:00
u3_noun r_sam = u3_cqfu_peek
2014-08-21 01:18:34 +04:00
(van, qq_ref, c3__rite, 2);
2014-09-06 00:13:24 +04:00
u3_bean ret = _nest_dext(van, r_sam, tel, s_sam, gil);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(r_sam);
u3z(s_sam);
2013-09-29 00:21:18 +04:00
return ret;
}
case c3__lead: {
2014-09-06 00:13:24 +04:00
return u3_yes;
2013-09-29 00:21:18 +04:00
}
case c3__zinc: {
2014-09-06 00:13:24 +04:00
u3_noun s_pal = u3_cqfu_peek
2014-08-21 01:18:34 +04:00
(van, qq_sut, c3__read, 2);
2014-09-06 00:13:24 +04:00
u3_noun r_pal = u3_cqfu_peek
2014-08-21 01:18:34 +04:00
(van, qq_ref, c3__read, 2);
2014-09-06 00:13:24 +04:00
u3_bean ret = _nest_dext(van, s_pal, tel, r_pal, gil);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(r_pal);
u3z(s_pal);
2013-09-29 00:21:18 +04:00
return ret;
}
}
}
}
}
}
}
2014-09-06 00:13:24 +04:00
static u3_bean
2014-08-21 01:18:34 +04:00
_nest_dext_in(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun p_sut, q_sut, p_ref, q_ref;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3du(sut)) ) switch ( sut ) {
default: return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
case c3__noun: {
2014-09-06 00:13:24 +04:00
return u3_yes;
2013-09-29 00:21:18 +04:00
}
case c3__void: {
2014-08-21 01:18:34 +04:00
return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
else switch ( u3h(sut) ) {
default: return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
case c3__atom: {
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3du(ref)) && (c3__atom == u3h(ref)) ) {
if ( u3_no == u3_cqf_fitz(u3t(sut), u3t(ref)) ) {
// u3_err("fitz: need", u3t(sut));
// u3_err("fitz: have", u3t(ref));
return u3_no;
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
return u3_yes;
2013-09-29 00:21:18 +04:00
}
2014-08-21 01:18:34 +04:00
else return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
2013-12-26 21:12:07 +04:00
case c3__bull: {
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut)) ) {
return u3_cm_bail(c3__fail);
} else {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, q_sut, tel, ref, gil);
2013-12-26 21:12:07 +04:00
}
}
2013-09-29 00:21:18 +04:00
case c3__cell: {
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut)) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
if ( u3_yes == u3_cr_pq(ref, c3__cell, &p_ref, &q_ref) ) {
return u3_and(_nest_dext(van, p_sut, tel, p_ref, gil),
2014-08-21 01:18:34 +04:00
_nest_dext(van, q_sut, tel, q_ref, gil));
2013-09-29 00:21:18 +04:00
}
2014-08-21 01:18:34 +04:00
else return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__core: {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cr_pq(ref, c3__core, &p_ref, &q_ref)) ) {
2014-08-21 01:18:34 +04:00
return _nest_cong(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
2014-08-21 01:18:34 +04:00
else return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__cube: {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
if ( u3_yes == u3_cr_pq(ref, c3__cube, &p_ref, &q_ref) ) {
return u3_cr_sing(p_sut, p_ref);
2013-09-29 00:21:18 +04:00
}
2014-08-21 01:18:34 +04:00
else return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__face: {
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut)) ) {
return u3_cm_bail(c3__fail);
} else {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, q_sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__fork: {
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3_cr_trel(sut, 0, &p_sut, &q_sut)) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3du(ref) ) switch ( ref ) {
2014-08-21 01:18:34 +04:00
default: return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
case c3__noun:
break;
}
2014-09-06 00:13:24 +04:00
else switch ( u3h(ref) ) {
2014-08-21 01:18:34 +04:00
default: return _nest_sint(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
case c3__atom:
case c3__cell:
2013-09-29 00:21:18 +04:00
case c3__cube:
case c3__core:
break;
}
2014-09-06 00:13:24 +04:00
return u3_or(_nest_dext(van, p_sut, u3_no, ref, gil),
_nest_dext(van, q_sut, u3_no, ref, gil));
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
case c3__hold: p_sut = u3t(sut);
2013-09-29 00:21:18 +04:00
{
2014-10-09 02:16:24 +04:00
u3_noun hud = u3nc(u3k(sut), u3k(ref));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cqdi_has(gil, hud)) ) {
u3z(hud);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_yes;
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
u3_noun zoc = u3_cqdi_put(gil, hud);
u3_noun fop = u3_cqfu_rest(van, sut, p_sut);
u3_bean hiv = _nest_dext(van, fop, tel, ref, zoc);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(hud);
u3z(fop);
u3z(zoc);
2013-09-29 00:21:18 +04:00
return hiv;
}
}
}
}
2014-09-06 00:13:24 +04:00
static u3_bean
2014-08-21 01:18:34 +04:00
_nest_dext_to(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_bean tyn = _nest_dext_in(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_yes == tyn) || (u3_no == tel) ) {
2013-09-29 00:21:18 +04:00
return tyn;
} else {
2014-09-06 00:13:24 +04:00
// u3_noun dun = u3_cqfu_dunq(van, "need", sut);
// u3_noun niz = u3_cqfu_dunq(van, "have", ref);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
// u3_ct_push(u3nc(c3__mean, dun));
// u3_ct_push(u3nc(c3__mean, niz));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_cm_error("type-fail");
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
static u3_bean
2014-08-21 01:18:34 +04:00
_nest_dext(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-10-05 01:57:40 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cr_sing(sut, ref)) ) {
return u3_yes;
2013-09-29 00:21:18 +04:00
}
{
2014-09-03 09:46:55 +04:00
c3_m fun_m = c3__nest;
2014-09-06 00:13:24 +04:00
u3_noun pro = u3_cz_find_2(fun_m, sut, ref);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( u3_none != pro ) {
2014-09-03 09:46:55 +04:00
return pro;
}
else {
pro = _nest_dext_to(van, sut, tel, ref, gil);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_cz_save_2(fun_m, sut, ref, pro);
2013-09-29 00:21:18 +04:00
}
}
}
2014-09-06 00:13:24 +04:00
static u3_bean
2014-08-21 01:18:34 +04:00
_nest_sint(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref,
u3_noun gil)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun p_ref, q_ref;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3du(ref)) ) {
2013-09-29 00:21:18 +04:00
switch ( ref ) {
2014-09-06 00:13:24 +04:00
default: return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
case c3__noun: return u3_no;
case c3__void: return u3_yes;
2013-09-29 00:21:18 +04:00
}
}
else {
2014-09-06 00:13:24 +04:00
switch ( u3h(ref) ) {
2013-09-29 00:21:18 +04:00
default: {
2014-09-06 00:13:24 +04:00
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__atom: return u3_no;
2013-12-26 21:12:07 +04:00
case c3__bull: {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_trel(ref, 0, &p_ref, &q_ref) ) {
return u3_cm_bail(c3__fail);
2013-12-26 21:12:07 +04:00
} else {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, sut, tel, q_ref, gil);
2013-12-26 21:12:07 +04:00
}
}
2014-09-06 00:13:24 +04:00
case c3__cell: return u3_no;
2013-09-29 00:21:18 +04:00
case c3__core: {
2014-09-06 00:13:24 +04:00
u3_noun gam = u3_cqfu_repo(van, ref);
u3_bean hiv = _nest_dext(van, sut, tel, gam, gil);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(gam);
2013-09-29 00:21:18 +04:00
return hiv;
}
case c3__cube: {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_trel(ref, 0, &p_ref, &q_ref) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, sut, tel, q_ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__face: {
2014-09-06 00:13:24 +04:00
if ( u3_no == u3_cr_trel(ref, 0, &p_ref, &q_ref) ) {
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-08-21 01:18:34 +04:00
return _nest_dext(van, sut, tel, q_ref, gil);
2013-09-29 00:21:18 +04:00
}
}
case c3__fork: {
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cr_mean(ref, 6, &p_ref, 7, &q_ref, 0)) ) {
return u3_and(_nest_dext(van, sut, u3_no, p_ref, gil),
_nest_dext(van, sut, u3_no, q_ref, gil));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
else return u3_cm_bail(c3__fail);
}
2013-09-29 00:21:18 +04:00
case c3__hold: {
2014-09-06 00:13:24 +04:00
p_ref = u3t(ref);
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun hud = u3nc(u3k(sut),
u3k(ref));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_yes == u3_cqdi_has(gil, hud)) ) {
u3z(hud);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_yes;
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
u3_noun zoc = u3_cqdi_put(gil, hud);
u3_noun gam = u3_cqfu_repo(van, ref);
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_bean hiv = _nest_dext(van, sut, tel, gam, zoc);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(hud);
u3z(gam);
u3z(zoc);
2013-09-29 00:21:18 +04:00
return hiv;
}
}
}
}
2013-09-29 00:21:18 +04:00
}
}
}
2014-09-06 00:13:24 +04:00
u3_bean
2014-09-03 09:46:55 +04:00
_cqfu_nest(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return _nest_dext(van, sut, tel, ref, u3_nul);
2013-09-29 00:21:18 +04:00
}
/* boilerplate
*/
2014-09-06 00:13:24 +04:00
u3_noun
u3_cwfu_nest(u3_noun cor)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun sut, tel, ref, van;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( (u3_no == u3_cr_mean(cor, u3_cv_sam_2, &tel,
u3_cv_sam_3, &ref,
u3_cv_con, &van,
2013-09-29 00:21:18 +04:00
0)) ||
2014-09-06 00:13:24 +04:00
(u3_no == u3ud(tel)) || (tel > 1) ||
(u3_none == (sut = u3_cr_at(u3_cv_sam, van))) )
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
} else {
2014-09-03 09:46:55 +04:00
return _cqfu_nest(van, sut, tel, ref);
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
u3_noun
u3_cqfu_nest(u3_noun van,
u3_noun sut,
u3_bean tel,
u3_noun ref)
2013-09-29 00:21:18 +04:00
{
2014-09-03 09:46:55 +04:00
return _cqfu_nest(van, sut, tel, ref);
2013-09-29 00:21:18 +04:00
}