shrub/j/6/ut_mint.c

961 lines
23 KiB
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/6/mint.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
2014-06-11 18:06:36 +04:00
int FOO;
2013-09-29 00:21:18 +04:00
/* logic
*/
2014-09-06 00:13:24 +04:00
static u3_noun
_mint_in(u3_noun, u3_noun, u3_noun, u3_noun);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_bean(void)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3nt(c3__fork,
u3nq(c3__cube, 0, c3__atom, 'f'),
u3nq(c3__cube, 1, c3__atom, 'f'));
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
_mint_vet(
2014-09-06 00:13:24 +04:00
u3_noun van)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
// u3_bean vet = u3_cj_hook(u3k(van), "vet");
u3_bean vet = u3_cr_at(u3_cqfu_van_vet, van);
2013-09-29 00:21:18 +04:00
switch ( vet ) {
2014-11-05 04:18:47 +03:00
case c3n:
case c3y: return vet;
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
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_core(
2014-09-06 00:13:24 +04:00
u3_noun pac,
u3_noun con)
2013-09-29 00:21:18 +04:00
{
if ( (c3__void == pac) ) {
return c3__void;
} else {
2014-09-06 00:13:24 +04:00
return u3nt(c3__core, pac, con);
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_foil(
2014-09-06 00:13:24 +04:00
u3_noun pok)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun p_pok = u3h(pok);
u3_noun q_pok = u3t(pok);
u3_noun ret;
2014-11-05 04:18:47 +03:00
if ( c3y == u3h(q_pok) ) {
2014-09-06 00:13:24 +04:00
u3_noun pq_pok = u3t(q_pok);
ret = u3nc(
u3k(p_pok),
u3nc(u3_nul,
u3nc(
u3nc(
u3k(pq_pok),
u3nt(c3__elm, u3_nul, 1)),
u3_nul)));
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
u3_noun pq_pok = u3h(u3t(q_pok));
u3_noun qq_pok = u3t(u3t(q_pok));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc(u3k(p_pok),
u3nc(u3k(pq_pok),
u3k(qq_pok)));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
u3z(pok);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_cond(
2014-09-06 00:13:24 +04:00
u3_noun pex,
u3_noun yom,
u3_noun woq)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
if ( 1 == u3h(pex) ) {
if ( 0 == u3t(pex) ) {
u3z(pex);
u3z(woq);
2013-09-29 00:21:18 +04:00
return yom;
}
2014-09-06 00:13:24 +04:00
else if ( 1 == u3t(pex) ) {
u3z(pex);
u3z(yom);
2013-09-29 00:21:18 +04:00
return woq;
}
}
2014-09-06 00:13:24 +04:00
return u3nq(6, pex, yom, woq);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_corn(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_noun gen)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun mil = _mint_in(van, sut, c3__noun, gen);
u3_noun fol = u3k(u3t(mil));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(mil);
2013-09-29 00:21:18 +04:00
return fol;
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_nice(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun gol,
u3_noun typ)
2013-09-29 00:21:18 +04:00
{
2014-11-05 04:18:47 +03:00
if ( (c3y == _mint_vet(van)) &&
(c3n == u3_cqfu_nest(van, gol, c3y, typ)) )
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
// u3_noun dun = u3_cqfu_dunq(van, "need", gol);
// u3_noun niz = u3_cqfu_dunq(van, "have", typ);
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("mint-nice");
2013-09-29 00:21:18 +04:00
}
else return typ;
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_coke(
2014-09-06 00:13:24 +04:00
u3_noun nug)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_atom axe;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( 0 == u3h(nug) ) {
axe = u3t(nug);
} else if ( 10 == u3h(nug) ) {
u3_noun xin = u3k(u3t(u3t(nug)));
2013-09-29 00:21:18 +04:00
2014-08-21 01:18:34 +04:00
axe = _mint_coke(xin);
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
return u3_cm_error("mint-coke");
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
u3z(nug);
2013-09-29 00:21:18 +04:00
return axe;
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_edit(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_noun mew,
u3_noun p_lar,
u3_noun rag,
u3_noun hej)
2013-09-29 00:21:18 +04:00
{
while ( 1 ) {
2014-11-05 04:18:47 +03:00
if ( c3n == u3du(mew) ) {
2014-09-06 00:13:24 +04:00
u3_noun gim = u3_cqfu_fire(van, sut, rag);
u3_noun fol = u3_cqf_hike(p_lar, hej);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(rag);
u3z(hej);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3nc(gim, fol);
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
u3_noun i_mew = u3h(mew);
u3_noun t_mew = u3t(mew);
u3_noun pi_mew = u3h(i_mew);
u3_noun qi_mew = u3t(i_mew);
u3_noun zil = u3_cqfu_mint(van, sut, c3__noun, qi_mew);
u3_noun p_zil = u3h(zil);
u3_noun q_zil = u3t(zil);
u3_noun wip = u3_cqfu_tock
2014-08-21 01:18:34 +04:00
(van, sut, pi_mew, p_zil, rag);
2014-09-06 00:13:24 +04:00
u3z(rag);
rag = u3k(u3t(wip));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
hej = u3nc(u3nc(u3k(u3h(wip)),
u3k(q_zil)),
2013-09-29 00:21:18 +04:00
hej);
2014-09-06 00:13:24 +04:00
u3z(zil);
u3z(wip);
2013-09-29 00:21:18 +04:00
mew = t_mew;
}
}
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_brew(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_bean tov,
u3_noun gen)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun von;
2013-09-29 00:21:18 +04:00
switch ( tov ) {
2014-09-06 00:13:24 +04:00
default: return u3_cm_bail(c3__fail);
2014-11-05 04:18:47 +03:00
case c3y:
2014-09-06 00:13:24 +04:00
von = u3k(van); break;
2014-11-05 04:18:47 +03:00
case c3n:
von = u3_ci_molt(u3k(van), u3_cqfu_van_vet, c3n, 0); break;
2013-09-29 00:21:18 +04:00
}
{
2014-09-06 00:13:24 +04:00
u3_noun mil = u3_cqfu_mint(von, sut, c3__noun, gen);
u3_noun fol = u3k(u3t(mil));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(mil);
u3z(von);
2013-09-29 00:21:18 +04:00
return fol;
}
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_bake(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_noun dab)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
if ( (u3_nul == dab) ) {
2014-08-21 01:18:34 +04:00
return 0;
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;
2014-09-06 00:13:24 +04:00
u3_cr_trel(dab, &n_dab, &l_dab, &r_dab);
2014-11-05 04:18:47 +03:00
if ( c3n == u3du(n_dab) ) {
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-06 00:13:24 +04:00
u3_noun qn_dab = u3t(n_dab);
u3_noun vad;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
switch ( u3h(qn_dab) ) {
default: return u3_cm_bail(c3__exit);
2013-09-29 00:21:18 +04:00
case c3__ash: {
2014-11-05 04:18:47 +03:00
vad = _mint_brew(van, sut, c3y, u3t(qn_dab));
2013-09-29 00:21:18 +04:00
break;
}
case c3__elm: {
2014-11-05 04:18:47 +03:00
vad = _mint_brew(van, sut, c3n, u3t(qn_dab));
2013-09-29 00:21:18 +04:00
break;
}
}
2014-09-06 00:13:24 +04:00
if ( (u3_nul == l_dab) && (u3_nul == r_dab) ) {
2013-09-29 00:21:18 +04:00
return vad;
}
2014-09-06 00:13:24 +04:00
else if ( (u3_nul == l_dab) ) {
return u3nc
2014-08-21 01:18:34 +04:00
(vad, _mint_bake(van, sut, r_dab));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
else if ( (u3_nul == r_dab) ) {
return u3nc
2014-08-21 01:18:34 +04:00
(vad, _mint_bake(van, sut, l_dab));
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
return u3nt
2014-08-21 01:18:34 +04:00
(vad,
_mint_bake(van, sut, l_dab),
_mint_bake(van, sut, r_dab));
2013-09-29 00:21:18 +04:00
}
}
}
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_grow(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_noun gol,
u3_atom mel,
u3_noun ruf,
u3_noun dab)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun dan = _mint_in(van, sut, c3__noun, ruf);
u3_noun p_dan = u3h(dan);
u3_noun q_dan = u3t(dan);
u3_noun toc = _mint_core
(u3k(p_dan),
u3nt(c3__gold,
u3k(p_dan),
u3nc(u3_nul, u3k(dab))));
u3_noun dez = _mint_bake(van, toc, dab);
u3_noun zod = u3nc(1, dez);
u3_noun cot = _mint_core
(u3k(p_dan),
u3nt(mel,
u3k(p_dan),
u3nc(u3k(dez),
u3k(dab))));
u3_noun ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, cot),
2014-09-06 00:13:24 +04:00
u3_cqf_cons(zod, q_dan));
2014-08-21 01:18:34 +04:00
2014-09-06 00:13:24 +04:00
u3z(zod);
u3z(toc);
u3z(dan);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
static u3_noun
2014-08-21 01:18:34 +04:00
_mint_loc(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun loc)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun mol = u3nc('o', u3k(loc));
u3_noun sho = u3_cj_hook(u3k(van), "show");
u3_noun ret = u3_ci_molt(u3k(sho), u3_cv_sam, u3k(mol), 0);
2014-09-06 00:13:24 +04:00
u3z(mol);
u3z(sho);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-08-21 01:18:34 +04:00
# define _mint_used()
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
static u3_noun
2014-10-06 21:17:33 +04:00
_mint_in(u3_noun van,
2014-09-06 00:13:24 +04:00
u3_noun sut,
u3_noun gol,
u3_noun gen)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun p_gen, q_gen, r_gen;
u3_noun ret;
2013-09-29 00:21:18 +04:00
if ( (c3__void == sut) &&
2014-11-05 04:18:47 +03:00
!((c3y == u3du(gen)) && (c3__zpcb == u3h(gen))) )
2013-09-29 00:21:18 +04:00
{
2014-11-05 04:18:47 +03:00
if ( (c3n == _mint_vet(van))
|| ((c3y == u3du(gen)) &&
2014-09-06 00:13:24 +04:00
((c3__zpfs == u3h(gen)) || (c3__zpzp == u3h(gen)))) )
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3nt(c3__void, 0, 0);
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
return u3_cm_error("mint-vain");
2013-09-29 00:21:18 +04:00
}
}
2014-11-05 04:18:47 +03:00
if ( c3n == u3du(gen) ) {
2014-09-06 00:13:24 +04:00
u3_noun ter = u3_cr_at(u3_cv_con_3, van);
u3_noun rex = u3_cqfp_open(ter, gen);
2013-09-29 00:21:18 +04:00
2014-08-21 01:18:34 +04:00
ret = _mint_in(van, sut, gol, rex);
2014-09-06 00:13:24 +04:00
u3z(rex);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-11-05 04:18:47 +03:00
else if ( c3y == u3du(u3h(gen)) ) {
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun hed = _mint_in(van, sut, c3__noun, u3h(gen));
u3_noun tal = _mint_in(van, sut, c3__noun, u3t(gen));
u3_noun typ = u3_cqf_cell(u3h(hed), u3h(tal));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, typ),
2014-09-06 00:13:24 +04:00
u3_cqf_cons(u3t(hed), u3t(tal)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(hed);
u3z(tal);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
} else switch ( u3h(gen) ) {
2013-09-29 00:21:18 +04:00
default: {
2014-09-06 00:13:24 +04:00
u3_noun ter = u3_cr_at(u3_cv_con_3, van);
u3_noun rex = u3_cqfp_open(ter, gen);
2013-09-29 00:21:18 +04:00
2014-11-05 04:18:47 +03:00
if ( c3y == u3_cr_sing(rex, gen) ) {
2013-09-29 00:21:18 +04:00
#if 1
2014-10-06 21:17:33 +04:00
u3_noun zix = u3_cqfu_shep(van, "gene", 'q', u3k(gen));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_ct_push(u3nc(c3__mean, zix));
return u3_cm_error("mint-open");
2013-09-29 00:21:18 +04:00
#else
2014-09-06 00:13:24 +04:00
u3_err("h", u3h(gen));
return u3_cm_bail(c3__fail);
2013-09-29 00:21:18 +04:00
#endif
}
2014-08-21 01:18:34 +04:00
ret = _mint_in(van, sut, gol, rex);
2014-09-06 00:13:24 +04:00
u3z(rex);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__bcpt: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2014-01-04 11:28:16 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun sep = u3_cqfu_seep(van, sut, c3__read, p_gen);
u3_noun axe = u3h(sep);
u3_noun rex = u3_cqfl_whip(van, q_gen, axe);
u3_noun ret = _mint_in(van, sut, gol, rex);
2014-01-04 11:28:16 +04:00
2014-09-06 00:13:24 +04:00
u3z(sep);
u3z(rex);
2014-01-04 11:28:16 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__wtts: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-12-27 06:43:25 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun nob = u3_cqfl_bunt(van, p_gen);
2014-10-06 21:17:33 +04:00
u3_noun dok = u3nc(c3__cnzz, u3k(q_gen));
2014-09-06 00:13:24 +04:00
u3_noun vol = _mint_corn(van, sut, dok);
u3_noun axe = _mint_coke(vol);
u3_noun wam = u3_cqfu_play(van, sut, nob);
2013-12-27 06:43:25 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, _mint_bean()),
2014-09-06 00:13:24 +04:00
u3_cqfu_fish(van, wam, axe));
2013-12-27 06:43:25 +04:00
2014-09-06 00:13:24 +04:00
u3z(axe);
u3z(wam);
u3z(nob);
u3z(dok);
2014-01-01 10:48:21 +04:00
2013-12-27 06:43:25 +04:00
return ret;
}
2014-01-01 00:11:16 +04:00
2014-09-06 00:13:24 +04:00
case c3__wtcl: u3_cx_trel(u3t(gen), &p_gen, &q_gen, &r_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun bol = _mint_bean();
u3_noun nor = _mint_in(van, sut, bol, p_gen);
u3_noun fex = u3_cqfu_gain(van, sut, p_gen);
u3_noun wux = u3_cqfu_lose(van, sut, p_gen);
u3_noun duy = (c3__void == fex)
2013-09-29 00:21:18 +04:00
? ( (c3__void == wux)
2014-09-06 00:13:24 +04:00
? u3nc(0, 0)
: u3nc(1, 1) )
2013-09-29 00:21:18 +04:00
: ( (c3__void == wux)
2014-09-06 00:13:24 +04:00
? u3nc(1, 0)
: u3k(u3t(nor)) );
u3_noun hiq = _mint_in(van, fex, gol, q_gen);
u3_noun ran = _mint_in(van, wux, gol, r_gen);
2014-08-21 01:18:34 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
(u3_cqf_fork(u3h(hiq), u3h(ran)),
2014-08-21 01:18:34 +04:00
_mint_cond(duy,
2014-09-06 00:13:24 +04:00
u3k(u3t(hiq)),
u3k(u3t(ran))));
2014-08-21 01:18:34 +04:00
2014-09-06 00:13:24 +04:00
u3z(ran);
u3z(hiq);
u3z(nor);
u3z(wux);
u3z(fex);
u3z(bol);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__clhp: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun hed = _mint_in(van, sut, c3__noun, p_gen);
u3_noun tal = _mint_in(van, sut, c3__noun, q_gen);
u3_noun typ = u3_cqf_cell(u3h(hed), u3h(tal));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, typ),
2014-09-06 00:13:24 +04:00
u3_cqf_cons(u3t(hed), u3t(tal)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(hed);
u3z(tal);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__dtts: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun typ = _mint_nice(van, gol, _mint_bean());
u3_noun one = _mint_corn(van, sut, p_gen);
u3_noun two = _mint_corn(van, sut, q_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3nc(typ, u3nt(5, one, two));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__dtwt: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun typ = _mint_nice(van, gol, _mint_bean());
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3nc
2014-08-21 01:18:34 +04:00
(
2013-09-29 00:21:18 +04:00
typ,
2014-09-06 00:13:24 +04:00
u3nc(3, _mint_corn(van, sut, p_gen)));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__dtkt: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun tom = c3__noun;
u3_noun sam = _mint_in(van, sut, tom, p_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, tom),
2014-09-06 00:13:24 +04:00
u3nc(11, u3k(u3t(sam))));
2014-09-06 00:13:24 +04:00
u3z(sam);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__dtls: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun tom = u3nc(c3__atom, u3_blip);
u3_noun sam = _mint_in(van, sut, tom, p_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, tom),
2014-09-06 00:13:24 +04:00
u3nc(4, u3k(u3t(sam))));
2014-09-06 00:13:24 +04:00
u3z(sam);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__dtzz: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-11-05 04:18:47 +03:00
u3_noun boc = (c3n == u3ud(q_gen))
2013-09-29 00:21:18 +04:00
? c3__noun
2014-09-06 00:13:24 +04:00
: u3nc(c3__atom, u3k(p_gen));
u3_noun typ = u3_cqf_cube(q_gen, boc);
u3_noun ret =
u3nc(
2014-08-21 01:18:34 +04:00
_mint_nice(van, gol, typ),
2014-09-06 00:13:24 +04:00
u3nc(1, u3k(q_gen)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(boc);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__dttr: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun one = _mint_corn(van, sut, p_gen);
u3_noun two = _mint_corn(van, sut, q_gen);
2014-07-24 03:23:53 +04:00
2014-09-06 00:13:24 +04:00
return u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van, gol, c3__noun),
2014-09-06 00:13:24 +04:00
u3nt(2, one, two));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__dtzy: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun typ = u3_cqfu_play(van, sut, gen);
u3_noun ret =
u3nc(
2014-08-21 01:18:34 +04:00
_mint_nice(van, gol, typ),
2014-09-06 00:13:24 +04:00
u3nc(1, u3k(q_gen)));
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__ktbr: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ryd = _mint_in(van, sut, gol, p_gen);
u3_noun tyf = u3_cqfu_wrap(van, u3h(ryd), c3__iron);
u3_noun pro = u3nc(tyf, u3k(u3t(ryd)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(ryd);
2013-09-29 00:21:18 +04:00
return pro;
}
2014-09-06 00:13:24 +04:00
case c3__ktpm: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ryd = _mint_in(van, sut, gol, p_gen);
u3_noun tyf = u3_cqfu_wrap(van, u3h(ryd), c3__zinc);
u3_noun pro = u3nc(tyf, u3k(u3t(ryd)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(ryd);
2013-09-29 00:21:18 +04:00
return pro;
}
2014-09-06 00:13:24 +04:00
case c3__ktwt: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ryd = _mint_in(van, sut, gol, p_gen);
u3_noun tyf = u3_cqfu_wrap(van, u3h(ryd), c3__lead);
u3_noun pro = u3nc(tyf, u3k(u3t(ryd)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(ryd);
2013-09-29 00:21:18 +04:00
return pro;
}
2014-09-06 00:13:24 +04:00
case c3__ktts: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun vat = _mint_in(van, sut, gol, q_gen);
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
2014-09-06 00:13:24 +04:00
u3_cqfu_conk(van, u3h(vat), p_gen),
u3k(u3t(vat)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(vat);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__ktzp: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
{
2014-09-06 00:13:24 +04:00
u3_noun vat = _mint_in(van, sut, gol, q_gen);
2014-09-06 00:13:24 +04:00
ret = u3nc
2014-08-21 01:18:34 +04:00
(
2014-09-06 00:13:24 +04:00
u3_cqfu_conk(van, u3h(vat), p_gen),
u3k(u3t(vat)));
2014-09-06 00:13:24 +04:00
u3z(vat);
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__ktsg: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun nef = _mint_in(van, sut, gol, p_gen);
u3_noun p_nef = u3h(nef);
u3_noun q_nef = u3t(nef);
u3_noun fom;
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun cag = u3_cqfu_burn(van, sut);
u3_noun wim = u3_cn_nock_an(cag, u3k(q_nef));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
if ( 0 == u3h(wim) ) {
fom = u3nc(1, u3k(u3t(wim)));
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
fom = u3k(q_nef);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
u3z(wim);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
ret = u3nc(u3k(p_nef), fom);
2014-09-06 00:13:24 +04:00
u3z(nef);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__ktls: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun huz = u3_cqfu_play(van, sut, p_gen);
u3_noun hif = _mint_nice(van, gol, huz);
u3_noun zel = _mint_in(van, sut, hif, q_gen);
u3_noun ret = u3nc(hif, u3k(u3t(zel)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(zel);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__kthx: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2014-06-11 18:06:36 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun huz = u3_cqfu_play(van, sut, p_gen);
u3_noun hif = _mint_nice(van, gol, huz);
u3_noun zel = _mint_in(van, sut, hif, q_gen);
u3_noun ret = u3nc(hif, u3k(u3t(zel)));
2014-06-11 18:06:36 +04:00
2014-06-26 01:59:22 +04:00
#if 0
2014-06-11 18:06:36 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun goz = u3_cqfu_play(van, sut, q_gen);
u3_noun bar;
2014-09-04 01:33:18 +04:00
2014-06-11 18:06:36 +04:00
FOO = 1;
fprintf(stderr, "\r\n");
2014-11-05 04:18:47 +03:00
bar = u3_cqfu_nest(van, huz, c3n, goz);
2014-06-11 18:06:36 +04:00
fprintf(stderr, "kthx: bar %d\r\n", bar);
FOO = 0;
}
2014-06-26 01:59:22 +04:00
#endif
2014-09-06 00:13:24 +04:00
u3z(zel);
2014-06-11 18:06:36 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__tsgr: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun fid = _mint_in(van, sut, c3__noun, p_gen);
u3_noun p_fid = u3h(fid);
u3_noun q_fid = u3t(fid);
u3_noun dov = _mint_in(van, p_fid, gol, q_gen);
u3_noun p_dov = u3h(dov);
u3_noun q_dov = u3t(dov);
2014-08-21 01:18:34 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc
(u3k(p_dov),
u3_cqf_comb(q_fid, q_dov));
2014-08-21 01:18:34 +04:00
2014-09-06 00:13:24 +04:00
u3z(fid);
u3z(dov);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__tstr: u3_cx_trel(u3t(gen), &p_gen, &q_gen, &r_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-12-26 21:12:07 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun sep = u3_cqfu_seep(van, sut, c3__both, q_gen);
u3_noun bid = u3nt(u3k(p_gen), u3k(q_gen), sep);
u3_noun boc = u3_cqf_bull(bid, sut);
u3_noun ret = _mint_in(van, boc, gol, r_gen);
2013-12-26 21:12:07 +04:00
2014-09-06 00:13:24 +04:00
u3z(bid);
u3z(boc);
2013-12-26 21:12:07 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__cnts: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
_mint_used();
{
u3_noun sec = u3_cqfu_seek(van, sut, c3__read, p_gen);
u3_noun lar = _mint_foil(sec);
u3_noun p_lar = u3h(lar);
u3_noun q_lar = u3t(lar);
u3_noun pq_lar = u3h(q_lar);
u3_noun qq_lar = u3t(q_lar);
u3_noun mew = u3_cqfu_snub(van, sut, q_gen);
u3_noun yom = _mint_edit
(van, sut, mew, p_lar, u3k(qq_lar), u3_nul);
u3_noun p_yom = u3h(yom);
u3_noun q_yom = u3t(yom);
u3_noun ret = u3nc
(_mint_nice(van, gol, u3k(p_yom)),
(0 == pq_lar) ? u3k(q_yom)
2014-10-10 05:27:02 +04:00
: u3nt(9, u3k(pq_lar), u3k(q_yom)));
2014-09-06 00:13:24 +04:00
u3z(yom);
u3z(mew);
u3z(lar);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__pmcl: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ruf = u3nt
2014-08-21 01:18:34 +04:00
(c3__clhp,
2014-09-06 00:13:24 +04:00
u3nc(u3_nul, 1),
u3k(p_gen));
u3_noun ret = _mint_grow(van, sut, gol, c3__zinc, ruf, q_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(ruf);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__brcn: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ruf = u3nc(u3_nul, 1);
2013-09-29 00:21:18 +04:00
2014-08-21 01:18:34 +04:00
ret = _mint_grow(van, sut, gol, c3__gold, ruf, p_gen);
2014-09-06 00:13:24 +04:00
u3z(ruf);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__pmcn: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ruf = u3nc(u3_nul, 1);
2013-09-29 00:21:18 +04:00
2014-08-21 01:18:34 +04:00
ret = _mint_grow(van, sut, gol, c3__lead, ruf, p_gen);
2014-09-06 00:13:24 +04:00
u3z(ruf);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__pmls: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun ruf = u3nt
2014-08-21 01:18:34 +04:00
(c3__clhp,
2014-09-06 00:13:24 +04:00
u3nc(u3_nul, 1),
u3k(p_gen));
u3_noun ret = _mint_grow(van, sut, gol, c3__iron, ruf, q_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(ruf);
2013-09-29 00:21:18 +04:00
return ret;
2013-12-05 02:30:09 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__sgzp: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-12-05 02:30:09 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun typ = u3_cqfu_play(van, sut, p_gen);
u3_noun dug = u3_cqfu_duck(van, typ);
2013-12-05 02:30:09 +04:00
2014-09-06 00:13:24 +04:00
u3_ct_push(u3nc(c3__mean, dug));
2013-12-05 02:30:09 +04:00
{
2014-08-21 01:18:34 +04:00
ret = _mint_in(van, sut, gol, q_gen);
}
2014-09-06 00:13:24 +04:00
u3_ct_drop();
2013-12-05 02:30:09 +04:00
2014-09-06 00:13:24 +04:00
u3z(typ);
2013-12-05 02:30:09 +04:00
return ret;
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__sggr: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun hum = _mint_in(van, sut, gol, q_gen);
u3_noun bez;
2014-11-05 04:18:47 +03:00
if ( c3y == u3ud(p_gen) ) {
2014-09-06 00:13:24 +04:00
bez = u3k(p_gen);
2013-09-29 00:21:18 +04:00
} else {
2014-09-06 00:13:24 +04:00
bez = u3nc(u3k(u3h(p_gen)),
_mint_corn(van, sut, u3t(p_gen)));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
ret = u3nc(
u3k(u3h(hum)),
u3nt(10, bez, u3k(u3t(hum))));
2014-09-06 00:13:24 +04:00
u3z(hum);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__zpts: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-11-05 04:18:47 +03:00
u3_noun von = u3_ci_molt(u3k(van), u3_cqfu_van_vet, c3n, 0);
2014-09-06 00:13:24 +04:00
u3_noun sev = _mint_corn(von, sut, p_gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(von);
return u3nc(c3__noun, u3nc(1, sev));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__zpcm: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3nc
2014-08-21 01:18:34 +04:00
(
_mint_nice(van,
gol,
2014-09-06 00:13:24 +04:00
u3_cqfu_play(van, sut, p_gen)),
u3nc(1, u3k(q_gen)));
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
case c3__zpcb: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_ct_push(u3nc(c3__mean, _mint_loc(van, p_gen)));
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun hum = _mint_in(van, sut, gol, q_gen);
u3_noun bez = u3nt(c3__spot, 1, u3k(p_gen));
2013-09-29 00:21:18 +04:00
2014-10-06 21:17:33 +04:00
ret = u3nc(u3k(u3h(hum)), u3nt(10, bez, u3k(u3t(hum))));
2014-09-06 00:13:24 +04:00
u3z(hum);
2013-09-29 00:21:18 +04:00
}
2014-09-06 00:13:24 +04:00
u3_ct_drop();
2013-09-29 00:21:18 +04:00
return ret;
}
case c3__zpcn:
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun pet = u3_cj_hook(u3k(van), "seed");
u3_noun p_pet = u3h(pet);
u3_noun q_pet = u3t(pet);
u3_noun ret;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc(_mint_nice(van, gol, u3k(p_pet)),
u3nc(1, u3k(q_pet)));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(pet);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__zpsm: u3_cx_cell(u3t(gen), &p_gen, &q_gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun vos = _mint_in(van, sut, c3__noun, q_gen);
u3_noun zur = u3_cqfu_play(van, sut, p_gen);
u3_noun p_vos = u3h(vos);
u3_noun q_vos = u3t(vos);
u3_noun waz = u3nc(1, u3k(p_vos));
u3_noun sif = u3k(zur);
u3_noun cig = u3_cqf_cell(sif, p_vos);
u3_noun ret;
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
ret = u3nc(
2014-08-21 01:18:34 +04:00
_mint_nice(van, gol, cig),
2014-09-06 00:13:24 +04:00
u3_cqf_cons(waz, q_vos));
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3z(waz);
u3z(zur);
u3z(sif);
u3z(vos);
2013-09-29 00:21:18 +04:00
return ret;
}
2014-09-06 00:13:24 +04:00
case c3__zpfs: p_gen = u3t(gen);
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-11-05 04:18:47 +03:00
if ( c3y == _mint_vet(van) ) {
2014-09-06 00:13:24 +04:00
u3_noun zur = u3_cqfu_play(van, sut, p_gen);
u3_noun dun = u3_cqfu_dunq(van, "lost", zur);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_ct_push(u3nc(c3__mean, dun));
return u3_cm_error("mint-lost");
2013-09-29 00:21:18 +04:00
}
else {
2014-09-06 00:13:24 +04:00
return u3nt(c3__void, 0, 0);
2013-09-29 00:21:18 +04:00
}
}
case c3__zpzp:
2014-08-21 01:18:34 +04:00
_mint_used();
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
return u3nt(c3__void, 0, 0);
2013-09-29 00:21:18 +04:00
}
}
}
2014-09-06 00:13:24 +04:00
u3_noun
2014-09-03 09:46:55 +04:00
_cqfu_mint(
2014-09-06 00:13:24 +04:00
u3_noun van,
u3_noun sut,
u3_noun gol,
u3_noun gen)
2013-09-29 00:21:18 +04:00
{
2014-08-21 01:18:34 +04:00
return _mint_in(van, sut, gol, gen);
2013-09-29 00:21:18 +04:00
}
/* boilerplate
*/
2014-09-06 00:13:24 +04:00
u3_noun
u3_cwfu_mint(u3_noun cor)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun sut, gol, gen, van;
2013-09-29 00:21:18 +04:00
2014-11-05 04:18:47 +03:00
if ( (c3n == u3_cr_mean(cor, u3_cv_sam_2, &gol,
2014-09-06 00:13:24 +04:00
u3_cv_sam_3, &gen,
u3_cv_con, &van,
2013-09-29 00:21:18 +04:00
0)) ||
2014-11-05 04:18:47 +03:00
(c3nne == (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_mint(van, sut, gol, gen);
2013-09-29 00:21:18 +04:00
}
}
2014-09-06 00:13:24 +04:00
u3_noun
u3_cqfu_mint(u3_noun van,
u3_noun sut,
u3_noun gol,
u3_noun gen)
2013-09-29 00:21:18 +04:00
{
2014-08-28 23:40:40 +04:00
c3_m fun_m = c3__mint;
2014-09-06 00:13:24 +04:00
u3_noun vrf = u3_cr_at(u3_cqfu_van_vrf, van);
u3_noun pro = u3_cz_find_4(fun_m, vrf, sut, gol, gen);
2013-09-29 00:21:18 +04:00
2014-11-05 04:18:47 +03:00
if ( c3nne != pro ) {
2014-08-28 23:40:40 +04:00
return pro;
2013-09-29 00:21:18 +04:00
}
else {
2014-09-03 09:46:55 +04:00
pro = _cqfu_mint(van, sut, gol, gen);
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
return u3_cz_save_4(fun_m, vrf, sut, gol, gen, pro);
2013-09-29 00:21:18 +04:00
}
}