2008-12-24 09:04:44 +00:00
|
|
|
|
|
|
|
/* This file was generated automatically by "yap -L misc/buildops"
|
|
|
|
please do not update */
|
|
|
|
|
|
|
|
|
|
|
|
while (TRUE) {
|
|
|
|
op_numbers op;
|
|
|
|
|
|
|
|
op = Yap_op_from_opcode(pc->opc);
|
|
|
|
/* C-code, maybe indexing */
|
|
|
|
switch (op) {
|
2010-12-16 22:21:46 +00:00
|
|
|
/* instructions type D */
|
|
|
|
case _write_dbterm:
|
|
|
|
pc = NEXTOP(pc,D);
|
|
|
|
break;
|
2011-06-24 21:08:22 +01:00
|
|
|
/* instructions type Illss */
|
2008-12-24 09:04:44 +00:00
|
|
|
case _enter_lu_pred:
|
2011-06-24 21:08:22 +01:00
|
|
|
return walk_got_lu_block(pc->u.Illss.I, startp, endp);
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type L */
|
|
|
|
case _alloc_for_logical_pred:
|
|
|
|
return walk_got_lu_clause(pc->u.L.ClBase, startp, endp);
|
2010-12-16 22:21:46 +00:00
|
|
|
/* instructions type N */
|
|
|
|
case _write_bigint:
|
|
|
|
pc = NEXTOP(pc,N);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type Osblp */
|
|
|
|
case _either:
|
|
|
|
case _or_else:
|
|
|
|
clause_code = TRUE;
|
|
|
|
pp = pc->u.Osblp.p0;
|
|
|
|
pc = NEXTOP(pc,Osblp);
|
|
|
|
break;
|
|
|
|
/* instructions type Osbmp */
|
|
|
|
case _p_execute:
|
2012-12-07 23:43:00 +00:00
|
|
|
case _p_execute_tail:
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,Osbmp);
|
|
|
|
break;
|
2011-07-30 00:07:35 +01:00
|
|
|
/* instructions type Osbpa */
|
2010-08-02 18:20:03 +01:00
|
|
|
case _ensure_space:
|
2011-07-30 00:07:35 +01:00
|
|
|
pc = NEXTOP(pc,Osbpa);
|
2010-08-02 18:20:03 +01:00
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type Osbpp */
|
2009-02-26 00:00:23 +00:00
|
|
|
case _call_cpred:
|
|
|
|
pp = pc->u.Osbpp.p;
|
|
|
|
return walk_found_c_pred(pp, startp, endp);
|
|
|
|
case _call_usercpred:
|
|
|
|
pp = pc->u.Osbpp.p;
|
|
|
|
return walk_found_c_pred(pp, startp, endp);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _p_execute2:
|
2009-02-26 00:00:23 +00:00
|
|
|
return found_meta_call(startp, endp);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _call:
|
|
|
|
case _fcall:
|
|
|
|
clause_code = TRUE;
|
|
|
|
pp = pc->u.Osbpp.p0;
|
|
|
|
pc = NEXTOP(pc,Osbpp);
|
|
|
|
break;
|
|
|
|
/* instructions type OtILl */
|
|
|
|
case _count_trust_logical:
|
|
|
|
case _profiled_trust_logical:
|
|
|
|
case _trust_logical:
|
|
|
|
return walk_got_lu_block(pc->u.OtILl.block, startp, endp);
|
|
|
|
/* instructions type OtaLl */
|
|
|
|
case _count_retry_logical:
|
|
|
|
case _profiled_retry_logical:
|
|
|
|
case _retry_logical:
|
|
|
|
case _try_logical:
|
|
|
|
pc = pc->u.OtaLl.n;
|
2009-02-25 22:15:18 +00:00
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type OtapFs */
|
|
|
|
#ifdef CUT_C
|
|
|
|
case _cut_c:
|
|
|
|
#endif
|
|
|
|
#ifdef CUT_C
|
|
|
|
case _cut_userc:
|
|
|
|
#endif
|
|
|
|
case _retry_c:
|
|
|
|
case _retry_userc:
|
|
|
|
case _try_c:
|
|
|
|
case _try_userc:
|
|
|
|
clause_code = TRUE;
|
|
|
|
pp = pc->u.OtapFs.p;
|
|
|
|
pc = NEXTOP(pc,OtapFs);
|
|
|
|
break;
|
|
|
|
/* instructions type Otapl */
|
|
|
|
case _count_retry_and_mark:
|
|
|
|
case _count_retry_me:
|
|
|
|
case _count_trust_me:
|
|
|
|
case _profiled_retry_and_mark:
|
|
|
|
case _profiled_retry_me:
|
|
|
|
case _profiled_trust_me:
|
|
|
|
case _retry:
|
|
|
|
case _retry_and_mark:
|
|
|
|
case _retry_me:
|
|
|
|
case _spy_or_trymark:
|
|
|
|
case _trust:
|
|
|
|
case _trust_me:
|
|
|
|
case _try_and_mark:
|
|
|
|
case _try_clause:
|
|
|
|
case _try_me:
|
2009-02-25 22:15:18 +00:00
|
|
|
clause_code = FALSE;
|
2008-12-29 00:14:47 +00:00
|
|
|
pp = pc->u.Otapl.p;
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,Otapl);
|
|
|
|
break;
|
2009-04-07 23:55:16 +01:00
|
|
|
/* instructions type aFlp */
|
|
|
|
case _native_me:
|
|
|
|
pc = NEXTOP(pc,aFlp);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type c */
|
|
|
|
case _write_atom:
|
|
|
|
pc = NEXTOP(pc,c);
|
|
|
|
break;
|
|
|
|
/* instructions type cc */
|
|
|
|
case _get_2atoms:
|
|
|
|
pc = NEXTOP(pc,cc);
|
|
|
|
break;
|
|
|
|
/* instructions type ccc */
|
|
|
|
case _get_3atoms:
|
|
|
|
pc = NEXTOP(pc,ccc);
|
|
|
|
break;
|
|
|
|
/* instructions type cccc */
|
|
|
|
case _get_4atoms:
|
|
|
|
pc = NEXTOP(pc,cccc);
|
|
|
|
break;
|
|
|
|
/* instructions type ccccc */
|
|
|
|
case _get_5atoms:
|
|
|
|
pc = NEXTOP(pc,ccccc);
|
|
|
|
break;
|
|
|
|
/* instructions type cccccc */
|
|
|
|
case _get_6atoms:
|
|
|
|
pc = NEXTOP(pc,cccccc);
|
|
|
|
break;
|
|
|
|
/* instructions type clll */
|
|
|
|
case _if_not_then:
|
|
|
|
pc = NEXTOP(pc,clll);
|
|
|
|
break;
|
|
|
|
/* instructions type d */
|
|
|
|
case _write_float:
|
|
|
|
pc = NEXTOP(pc,d);
|
|
|
|
break;
|
|
|
|
/* instructions type e */
|
|
|
|
case _Nstop:
|
|
|
|
return NULL;
|
|
|
|
case _copy_idb_term:
|
|
|
|
return found_idb_clause(pc, startp, endp);
|
|
|
|
case _expand_index:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_expand(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _index_pred:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_owner_op(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _lock_pred:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_owner_op(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _op_fail:
|
|
|
|
if (codeptr == FAILCODE)
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_fail(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
case _spy_pred:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_owner_op(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trust_fail:
|
|
|
|
if (codeptr == TRUSTFAILCODE)
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_fail(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
case _undef_p:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_owner_op(pc, startp, endp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _unify_idb_term:
|
|
|
|
return found_idb_clause(pc, startp, endp);
|
|
|
|
case _allocate:
|
2013-01-07 09:47:14 +00:00
|
|
|
case _enter_exo:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _index_blob:
|
|
|
|
case _index_dbref:
|
2009-02-09 21:56:40 +00:00
|
|
|
case _index_long:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _p_equal:
|
|
|
|
case _p_functor:
|
|
|
|
case _pop:
|
|
|
|
#ifdef BEAM
|
|
|
|
case _retry_eam:
|
|
|
|
#endif
|
|
|
|
#ifdef THREADS
|
|
|
|
case _thread_local:
|
|
|
|
#endif
|
|
|
|
case _unlock_lu:
|
|
|
|
case _write_l_list:
|
|
|
|
case _write_list:
|
|
|
|
case _write_void:
|
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
/* instructions type fa */
|
|
|
|
case _write_l_struc:
|
|
|
|
case _write_struct:
|
|
|
|
pc = NEXTOP(pc,fa);
|
|
|
|
break;
|
|
|
|
/* instructions type i */
|
|
|
|
case _write_longint:
|
|
|
|
pc = NEXTOP(pc,i);
|
|
|
|
break;
|
|
|
|
/* instructions type l */
|
|
|
|
case _Ystop:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_ystop(pc, clause_code, startp, endp, pp PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _jump:
|
|
|
|
case _jump_if_var:
|
|
|
|
case _move_back:
|
|
|
|
case _p_dif:
|
|
|
|
case _p_eq:
|
|
|
|
case _retry2:
|
|
|
|
case _retry3:
|
|
|
|
case _retry4:
|
|
|
|
case _skip:
|
|
|
|
case _try_clause2:
|
|
|
|
case _try_clause3:
|
|
|
|
case _try_clause4:
|
|
|
|
case _try_in:
|
|
|
|
pc = NEXTOP(pc,l);
|
|
|
|
break;
|
|
|
|
/* instructions type llll */
|
|
|
|
case _switch_on_type:
|
|
|
|
pc = NEXTOP(pc,llll);
|
|
|
|
break;
|
2009-02-12 21:35:31 +00:00
|
|
|
/* instructions type lp */
|
2013-01-08 12:35:18 +00:00
|
|
|
case _retry_all_exo:
|
2013-01-07 09:47:14 +00:00
|
|
|
case _retry_exo:
|
2013-04-17 02:04:53 +01:00
|
|
|
case _retry_exo_udi:
|
2013-01-08 12:35:18 +00:00
|
|
|
case _try_all_exo:
|
2013-01-07 09:47:14 +00:00
|
|
|
case _try_exo:
|
2013-04-17 02:04:53 +01:00
|
|
|
case _try_exo_udi:
|
2009-02-12 21:35:31 +00:00
|
|
|
case _user_switch:
|
|
|
|
pc = NEXTOP(pc,lp);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type o */
|
|
|
|
case _unify_l_list:
|
|
|
|
case _unify_l_list_write:
|
|
|
|
case _unify_l_void:
|
|
|
|
case _unify_l_void_write:
|
|
|
|
case _unify_list:
|
|
|
|
case _unify_list_write:
|
|
|
|
case _unify_void:
|
|
|
|
case _unify_void_write:
|
|
|
|
pc = NEXTOP(pc,o);
|
|
|
|
break;
|
2010-12-16 20:39:53 +00:00
|
|
|
/* instructions type oD */
|
|
|
|
case _unify_dbterm:
|
|
|
|
case _unify_l_dbterm:
|
|
|
|
pc = NEXTOP(pc,oD);
|
|
|
|
break;
|
2010-12-16 22:21:46 +00:00
|
|
|
/* instructions type oN */
|
|
|
|
case _unify_bigint:
|
|
|
|
case _unify_l_bigint:
|
|
|
|
pc = NEXTOP(pc,oN);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type oc */
|
|
|
|
case _unify_atom:
|
|
|
|
case _unify_atom_write:
|
|
|
|
case _unify_l_atom:
|
|
|
|
case _unify_l_atom_write:
|
|
|
|
pc = NEXTOP(pc,oc);
|
|
|
|
break;
|
|
|
|
/* instructions type od */
|
|
|
|
case _unify_float:
|
|
|
|
case _unify_float_write:
|
|
|
|
case _unify_l_float:
|
|
|
|
case _unify_l_float_write:
|
|
|
|
pc = NEXTOP(pc,od);
|
|
|
|
break;
|
|
|
|
/* instructions type ofa */
|
|
|
|
case _unify_l_struc:
|
|
|
|
case _unify_l_struc_write:
|
|
|
|
case _unify_struct:
|
|
|
|
case _unify_struct_write:
|
|
|
|
pc = NEXTOP(pc,ofa);
|
|
|
|
break;
|
|
|
|
/* instructions type oi */
|
|
|
|
case _unify_l_longint:
|
|
|
|
case _unify_l_longint_write:
|
|
|
|
case _unify_longint:
|
|
|
|
case _unify_longint_write:
|
|
|
|
pc = NEXTOP(pc,oi);
|
|
|
|
break;
|
|
|
|
/* instructions type ollll */
|
|
|
|
case _switch_list_nl:
|
|
|
|
pc = NEXTOP(pc,ollll);
|
|
|
|
break;
|
|
|
|
/* instructions type os */
|
|
|
|
#ifdef BEAM
|
|
|
|
case _run_eam:
|
|
|
|
#endif
|
|
|
|
case _unify_l_n_voids:
|
|
|
|
case _unify_l_n_voids_write:
|
|
|
|
case _unify_n_voids:
|
|
|
|
case _unify_n_voids_write:
|
|
|
|
pc = NEXTOP(pc,os);
|
|
|
|
break;
|
|
|
|
/* instructions type osc */
|
|
|
|
case _unify_n_atoms:
|
|
|
|
case _unify_n_atoms_write:
|
|
|
|
pc = NEXTOP(pc,osc);
|
|
|
|
break;
|
|
|
|
/* instructions type ox */
|
|
|
|
case _save_appl_x:
|
|
|
|
case _save_appl_x_write:
|
|
|
|
case _save_pair_x:
|
|
|
|
case _save_pair_x_write:
|
|
|
|
case _unify_l_x_loc:
|
|
|
|
case _unify_l_x_loc_write:
|
|
|
|
case _unify_l_x_val:
|
|
|
|
case _unify_l_x_val_write:
|
|
|
|
case _unify_l_x_var:
|
|
|
|
case _unify_l_x_var_write:
|
|
|
|
case _unify_x_loc:
|
|
|
|
case _unify_x_loc_write:
|
|
|
|
case _unify_x_val:
|
|
|
|
case _unify_x_val_write:
|
|
|
|
case _unify_x_var:
|
|
|
|
case _unify_x_var_write:
|
|
|
|
pc = NEXTOP(pc,ox);
|
|
|
|
break;
|
|
|
|
/* instructions type oxx */
|
|
|
|
case _unify_l_x_var2:
|
|
|
|
case _unify_l_x_var2_write:
|
|
|
|
case _unify_x_var2:
|
|
|
|
case _unify_x_var2_write:
|
|
|
|
pc = NEXTOP(pc,oxx);
|
|
|
|
break;
|
|
|
|
/* instructions type oy */
|
|
|
|
case _save_appl_y:
|
|
|
|
case _save_appl_y_write:
|
|
|
|
case _save_pair_y:
|
|
|
|
case _save_pair_y_write:
|
|
|
|
case _unify_l_y_loc:
|
|
|
|
case _unify_l_y_loc_write:
|
|
|
|
case _unify_l_y_val:
|
|
|
|
case _unify_l_y_val_write:
|
|
|
|
case _unify_l_y_var:
|
|
|
|
case _unify_l_y_var_write:
|
|
|
|
case _unify_y_loc:
|
|
|
|
case _unify_y_loc_write:
|
|
|
|
case _unify_y_val:
|
|
|
|
case _unify_y_val_write:
|
|
|
|
case _unify_y_var:
|
|
|
|
case _unify_y_var_write:
|
|
|
|
pc = NEXTOP(pc,oy);
|
|
|
|
break;
|
|
|
|
/* instructions type p */
|
|
|
|
case _lock_lu:
|
|
|
|
case _procceed:
|
|
|
|
pp = pc->u.p.p;
|
|
|
|
if (pp->PredFlags & MegaClausePredFlag)
|
|
|
|
return found_mega_clause(pp, startp, endp);
|
|
|
|
clause_code = TRUE;
|
|
|
|
pc = NEXTOP(pc,p);
|
|
|
|
break;
|
|
|
|
case _count_call:
|
|
|
|
case _count_retry:
|
|
|
|
case _deallocate:
|
|
|
|
case _enter_profiling:
|
|
|
|
case _retry_profiled:
|
2013-01-22 16:01:37 +00:00
|
|
|
case _retry_udi:
|
|
|
|
case _try_udi:
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,p);
|
|
|
|
break;
|
|
|
|
/* instructions type plxxs */
|
|
|
|
case _call_bfunc_xx:
|
|
|
|
pc = NEXTOP(pc,plxxs);
|
|
|
|
break;
|
|
|
|
/* instructions type plxys */
|
|
|
|
case _call_bfunc_xy:
|
|
|
|
case _call_bfunc_yx:
|
|
|
|
pc = NEXTOP(pc,plxys);
|
|
|
|
break;
|
|
|
|
/* instructions type plyys */
|
|
|
|
case _call_bfunc_yy:
|
|
|
|
pc = NEXTOP(pc,plyys);
|
|
|
|
break;
|
|
|
|
/* instructions type pp */
|
2009-02-26 00:00:23 +00:00
|
|
|
case _execute_cpred:
|
|
|
|
pp = pc->u.pp.p;
|
|
|
|
return walk_found_c_pred(pp, startp, endp);
|
2008-12-24 09:04:44 +00:00
|
|
|
case _dexecute:
|
|
|
|
case _execute:
|
|
|
|
clause_code = TRUE;
|
|
|
|
pp = pc->u.pp.p0;
|
|
|
|
pc = NEXTOP(pc,pp);
|
|
|
|
break;
|
|
|
|
/* instructions type s */
|
2011-02-14 14:57:16 +00:00
|
|
|
case _cut:
|
|
|
|
case _cut_e:
|
|
|
|
case _cut_t:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _pop_n:
|
|
|
|
case _write_n_voids:
|
|
|
|
pc = NEXTOP(pc,s);
|
|
|
|
break;
|
|
|
|
/* instructions type sc */
|
|
|
|
case _write_n_atoms:
|
|
|
|
pc = NEXTOP(pc,sc);
|
|
|
|
break;
|
|
|
|
/* instructions type sllll */
|
|
|
|
case _switch_on_sub_arg_type:
|
|
|
|
pc = NEXTOP(pc,sllll);
|
|
|
|
break;
|
|
|
|
/* instructions type slp */
|
|
|
|
case _call_c_wfail:
|
2009-02-26 00:00:23 +00:00
|
|
|
pp = pc->u.slp.p;
|
|
|
|
return walk_found_c_pred(pp, startp, endp);
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type sssl */
|
|
|
|
case _go_on_cons:
|
|
|
|
case _go_on_func:
|
|
|
|
case _if_cons:
|
|
|
|
case _if_func:
|
|
|
|
case _switch_on_cons:
|
|
|
|
case _switch_on_func:
|
|
|
|
pc = NEXTOP(pc,sssl);
|
|
|
|
break;
|
|
|
|
/* instructions type sssllp */
|
|
|
|
case _expand_clauses:
|
2011-03-07 16:02:55 +00:00
|
|
|
return found_expand_index(pc, startp, endp, codeptr PASS_REGS);
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,sssllp);
|
|
|
|
break;
|
|
|
|
/* instructions type x */
|
2013-01-07 09:47:14 +00:00
|
|
|
case _get_atom_exo:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _get_list:
|
|
|
|
case _put_list:
|
|
|
|
case _save_b_x:
|
|
|
|
case _write_x_loc:
|
|
|
|
case _write_x_val:
|
|
|
|
case _write_x_var:
|
|
|
|
pc = NEXTOP(pc,x);
|
|
|
|
break;
|
2010-12-16 20:39:53 +00:00
|
|
|
/* instructions type xD */
|
2008-12-24 09:04:44 +00:00
|
|
|
case _get_dbterm:
|
2010-12-16 22:21:46 +00:00
|
|
|
case _put_dbterm:
|
2010-12-16 20:39:53 +00:00
|
|
|
pc = NEXTOP(pc,xD);
|
|
|
|
break;
|
2010-12-16 22:21:46 +00:00
|
|
|
/* instructions type xN */
|
|
|
|
case _get_bigint:
|
|
|
|
case _put_bigint:
|
|
|
|
pc = NEXTOP(pc,xN);
|
|
|
|
break;
|
2010-12-16 20:39:53 +00:00
|
|
|
/* instructions type xc */
|
|
|
|
case _get_atom:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _put_atom:
|
|
|
|
pc = NEXTOP(pc,xc);
|
|
|
|
break;
|
|
|
|
/* instructions type xd */
|
|
|
|
case _get_float:
|
|
|
|
case _put_float:
|
|
|
|
pc = NEXTOP(pc,xd);
|
|
|
|
break;
|
|
|
|
/* instructions type xfa */
|
|
|
|
case _get_struct:
|
|
|
|
case _put_struct:
|
|
|
|
pc = NEXTOP(pc,xfa);
|
|
|
|
break;
|
|
|
|
/* instructions type xi */
|
|
|
|
case _get_longint:
|
|
|
|
case _put_longint:
|
|
|
|
pc = NEXTOP(pc,xi);
|
|
|
|
break;
|
|
|
|
/* instructions type xl */
|
|
|
|
case _p_atom_x:
|
|
|
|
case _p_atomic_x:
|
|
|
|
case _p_compound_x:
|
|
|
|
case _p_db_ref_x:
|
|
|
|
case _p_float_x:
|
|
|
|
case _p_integer_x:
|
|
|
|
case _p_nonvar_x:
|
|
|
|
case _p_number_x:
|
|
|
|
case _p_primitive_x:
|
|
|
|
case _p_var_x:
|
|
|
|
pc = NEXTOP(pc,xl);
|
|
|
|
break;
|
|
|
|
/* instructions type xll */
|
|
|
|
case _jump_if_nonvar:
|
|
|
|
pc = NEXTOP(pc,xll);
|
|
|
|
break;
|
|
|
|
/* instructions type xllll */
|
|
|
|
case _switch_on_arg_type:
|
|
|
|
pc = NEXTOP(pc,xllll);
|
|
|
|
break;
|
2011-02-14 19:29:20 +00:00
|
|
|
/* instructions type xps */
|
2008-12-24 09:04:44 +00:00
|
|
|
case _commit_b_x:
|
2011-02-14 19:29:20 +00:00
|
|
|
pc = NEXTOP(pc,xps);
|
2008-12-24 09:04:44 +00:00
|
|
|
break;
|
|
|
|
/* instructions type xx */
|
|
|
|
case _get_x_val:
|
|
|
|
case _get_x_var:
|
|
|
|
case _gl_void_valx:
|
|
|
|
case _gl_void_varx:
|
|
|
|
case _glist_valx:
|
|
|
|
case _put_x_val:
|
|
|
|
case _put_x_var:
|
|
|
|
pc = NEXTOP(pc,xx);
|
|
|
|
break;
|
2009-12-06 00:37:48 +00:00
|
|
|
/* instructions type xxc */
|
|
|
|
case _p_func2s_cv:
|
|
|
|
pc = NEXTOP(pc,xxc);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
/* instructions type xxn */
|
|
|
|
case _p_and_vc:
|
|
|
|
case _p_arg_cv:
|
|
|
|
case _p_div_cv:
|
|
|
|
case _p_div_vc:
|
|
|
|
case _p_func2s_vc:
|
|
|
|
case _p_minus_cv:
|
|
|
|
case _p_or_vc:
|
|
|
|
case _p_plus_vc:
|
|
|
|
case _p_sll_cv:
|
|
|
|
case _p_sll_vc:
|
|
|
|
case _p_slr_cv:
|
|
|
|
case _p_slr_vc:
|
|
|
|
case _p_times_vc:
|
|
|
|
pc = NEXTOP(pc,xxn);
|
|
|
|
break;
|
|
|
|
/* instructions type xxx */
|
|
|
|
case _p_and_vv:
|
|
|
|
case _p_arg_vv:
|
|
|
|
case _p_div_vv:
|
|
|
|
case _p_func2f_xx:
|
|
|
|
case _p_func2s_vv:
|
|
|
|
case _p_minus_vv:
|
|
|
|
case _p_or_vv:
|
|
|
|
case _p_plus_vv:
|
|
|
|
case _p_sll_vv:
|
|
|
|
case _p_slr_vv:
|
|
|
|
case _p_times_vv:
|
|
|
|
pc = NEXTOP(pc,xxx);
|
|
|
|
break;
|
|
|
|
/* instructions type xxxx */
|
|
|
|
case _put_xx_val:
|
|
|
|
pc = NEXTOP(pc,xxxx);
|
|
|
|
break;
|
|
|
|
/* instructions type xxy */
|
|
|
|
case _p_func2f_xy:
|
|
|
|
pc = NEXTOP(pc,xxy);
|
|
|
|
break;
|
|
|
|
/* instructions type y */
|
|
|
|
case _save_b_y:
|
|
|
|
case _write_y_loc:
|
|
|
|
case _write_y_val:
|
|
|
|
case _write_y_var:
|
|
|
|
pc = NEXTOP(pc,y);
|
|
|
|
break;
|
|
|
|
/* instructions type yl */
|
|
|
|
case _p_atom_y:
|
|
|
|
case _p_atomic_y:
|
|
|
|
case _p_compound_y:
|
|
|
|
case _p_db_ref_y:
|
|
|
|
case _p_float_y:
|
|
|
|
case _p_integer_y:
|
|
|
|
case _p_nonvar_y:
|
|
|
|
case _p_number_y:
|
|
|
|
case _p_primitive_y:
|
|
|
|
case _p_var_y:
|
|
|
|
pc = NEXTOP(pc,yl);
|
|
|
|
break;
|
2011-02-14 19:29:20 +00:00
|
|
|
/* instructions type yps */
|
2008-12-24 09:04:44 +00:00
|
|
|
case _commit_b_y:
|
2011-02-14 19:29:20 +00:00
|
|
|
pc = NEXTOP(pc,yps);
|
2008-12-24 09:04:44 +00:00
|
|
|
break;
|
|
|
|
/* instructions type yx */
|
|
|
|
case _get_y_val:
|
|
|
|
case _get_y_var:
|
2009-03-05 16:12:21 +00:00
|
|
|
case _gl_void_valy:
|
|
|
|
case _gl_void_vary:
|
|
|
|
case _glist_valy:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _put_unsafe:
|
|
|
|
case _put_y_val:
|
|
|
|
case _put_y_var:
|
|
|
|
pc = NEXTOP(pc,yx);
|
|
|
|
break;
|
|
|
|
/* instructions type yxn */
|
|
|
|
case _p_and_y_vc:
|
|
|
|
case _p_arg_y_cv:
|
|
|
|
case _p_div_y_cv:
|
|
|
|
case _p_div_y_vc:
|
|
|
|
case _p_func2s_y_cv:
|
|
|
|
case _p_func2s_y_vc:
|
|
|
|
case _p_minus_y_cv:
|
|
|
|
case _p_or_y_vc:
|
|
|
|
case _p_plus_y_vc:
|
|
|
|
case _p_sll_y_cv:
|
|
|
|
case _p_sll_y_vc:
|
|
|
|
case _p_slr_y_cv:
|
|
|
|
case _p_slr_y_vc:
|
|
|
|
case _p_times_y_vc:
|
|
|
|
pc = NEXTOP(pc,yxn);
|
|
|
|
break;
|
|
|
|
/* instructions type yxx */
|
|
|
|
case _p_and_y_vv:
|
|
|
|
case _p_arg_y_vv:
|
|
|
|
case _p_div_y_vv:
|
|
|
|
case _p_func2f_yx:
|
|
|
|
case _p_func2s_y_vv:
|
|
|
|
case _p_minus_y_vv:
|
|
|
|
case _p_or_y_vv:
|
|
|
|
case _p_plus_y_vv:
|
|
|
|
case _p_sll_y_vv:
|
|
|
|
case _p_slr_y_vv:
|
|
|
|
case _p_times_y_vv:
|
|
|
|
pc = NEXTOP(pc,yxx);
|
|
|
|
break;
|
|
|
|
/* instructions type yyx */
|
|
|
|
case _p_func2f_yy:
|
|
|
|
pc = NEXTOP(pc,yyx);
|
|
|
|
break;
|
2009-03-03 10:04:13 +00:00
|
|
|
/* instructions type yyxx */
|
|
|
|
case _get_yy_var:
|
|
|
|
case _put_y_vals:
|
|
|
|
pc = NEXTOP(pc,yyxx);
|
|
|
|
break;
|
2008-12-24 09:04:44 +00:00
|
|
|
#ifdef YAPOR
|
|
|
|
/* instructions type Otapl */
|
|
|
|
case _getwork:
|
|
|
|
case _getwork_seq:
|
|
|
|
case _sync:
|
2009-02-25 22:15:18 +00:00
|
|
|
clause_code = FALSE;
|
2008-12-29 00:14:47 +00:00
|
|
|
pp = pc->u.Otapl.p;
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,Otapl);
|
|
|
|
break;
|
|
|
|
/* instructions type e */
|
|
|
|
case _getwork_first_time:
|
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
#ifdef TABLING
|
|
|
|
/* instructions type Otapl */
|
|
|
|
case _table_answer_resolution:
|
2011-12-22 16:50:20 +00:00
|
|
|
#ifdef THREADS_CONSUMER_SHARING
|
|
|
|
case _table_answer_resolution_completion:
|
2012-01-05 11:41:46 +00:00
|
|
|
#endif
|
|
|
|
case _table_completion:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _table_load_answer:
|
|
|
|
case _table_retry:
|
|
|
|
case _table_retry_me:
|
|
|
|
case _table_trust:
|
|
|
|
case _table_trust_me:
|
|
|
|
case _table_try:
|
|
|
|
case _table_try_answer:
|
|
|
|
case _table_try_me:
|
|
|
|
case _table_try_single:
|
2009-02-25 22:15:18 +00:00
|
|
|
clause_code = FALSE;
|
2008-12-29 00:14:47 +00:00
|
|
|
pp = pc->u.Otapl.p;
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,Otapl);
|
|
|
|
break;
|
|
|
|
/* instructions type e */
|
|
|
|
#ifdef TABLING_INNER_CUTS
|
|
|
|
case _clause_with_cut:
|
|
|
|
#endif
|
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
/* instructions type s */
|
|
|
|
case _table_new_answer:
|
|
|
|
pc = NEXTOP(pc,s);
|
|
|
|
break;
|
|
|
|
/* instructions type e */
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_appl:
|
|
|
|
case _trie_do_appl_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_do_atom:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_atom_in_pair:
|
|
|
|
case _trie_do_double:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_do_extension:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_gterm:
|
|
|
|
case _trie_do_longint:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_do_null:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_null_in_pair:
|
2009-07-05 05:14:08 +01:00
|
|
|
case _trie_do_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_do_val:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_val_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_do_var:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_do_var_in_pair:
|
|
|
|
case _trie_retry_appl:
|
|
|
|
case _trie_retry_appl_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_retry_atom:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_retry_atom_in_pair:
|
|
|
|
case _trie_retry_double:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_retry_extension:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_retry_gterm:
|
|
|
|
case _trie_retry_longint:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_retry_null:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_retry_null_in_pair:
|
2009-07-05 05:14:08 +01:00
|
|
|
case _trie_retry_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_retry_val:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_retry_val_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_retry_var:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_retry_var_in_pair:
|
|
|
|
case _trie_trust_appl:
|
|
|
|
case _trie_trust_appl_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_trust_atom:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_trust_atom_in_pair:
|
|
|
|
case _trie_trust_double:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_trust_extension:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_trust_gterm:
|
|
|
|
case _trie_trust_longint:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_trust_null:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_trust_null_in_pair:
|
2009-07-05 05:14:08 +01:00
|
|
|
case _trie_trust_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_trust_val:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_trust_val_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_trust_var:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_trust_var_in_pair:
|
|
|
|
case _trie_try_appl:
|
|
|
|
case _trie_try_appl_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_try_atom:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_try_atom_in_pair:
|
|
|
|
case _trie_try_double:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_try_extension:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_try_gterm:
|
|
|
|
case _trie_try_longint:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_try_null:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_try_null_in_pair:
|
2009-07-05 05:14:08 +01:00
|
|
|
case _trie_try_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_try_val:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_try_val_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
case _trie_try_var:
|
2010-04-15 01:09:59 +01:00
|
|
|
case _trie_try_var_in_pair:
|
2008-12-24 09:04:44 +00:00
|
|
|
pc = NEXTOP(pc,e);
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
/* this instruction is hardwired */
|
|
|
|
case _or_last:
|
|
|
|
#ifdef YAPOR
|
2009-08-20 03:53:49 +01:00
|
|
|
pp = pc->u.Osblp.p0;
|
2008-12-24 09:04:44 +00:00
|
|
|
if (pp->PredFlags & MegaClausePredFlag)
|
|
|
|
return found_mega_clause(pp, startp, endp);
|
|
|
|
clause_code = TRUE;
|
|
|
|
pc = NEXTOP(pc,Osblp);
|
|
|
|
#else
|
|
|
|
pp = pc->u.p.p;
|
|
|
|
if (pp->PredFlags & MegaClausePredFlag)
|
|
|
|
return found_mega_clause(pp, startp, endp);
|
|
|
|
clause_code = TRUE;
|
|
|
|
pc = NEXTOP(pc,p);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|