:- use_module(library(reif)).
-permutation([], []).
-permutation([X|Xs], Ys) :-
- permutation(Xs, Yss),
- select(X, Ys, Yss).
-
-
valid_time([H1,H2,M1,M2], T) :-
memberd_t(H1, [0,1,2], TH1),
memberd_t(H2, [0,1,2,3,4,5,6,7,8,9], TH2),
]
));
- for _ in 0..2 { //00000 {
+ for _ in 0..200000 {
let mut iter = stackless_preorder_iter(&mut wam.machine_st.heap, heap_loc_as_cell!(0));
assert_eq!(
return self.push_list(max_depth);
}
- // let end_h = heap_pstr_iter.focus();
- // let end_cell = self.iter.heap[end_h];
-
let end_h = heap_pstr_iter.focus();
let end_cell = heap_pstr_iter.focus;
if self.ignore_ops {
if !self.print_string_as_functor(focus, max_depth) {
- if end_cell == empty_list_as_cell!() { // end_cell.get_tag() == HeapCellValueTag::CStr {
+ if end_cell == empty_list_as_cell!() {
append_str!(self, "[]");
} else {
if self.outputter.ends_with(",") {
MS >= 0
) ->
( var(SG),
+ MS =:= 0,
pairs:same_key(SG, HeadVars, [_|_], _) ->
expand_subgoal(SG, MS, M, ESG, HeadVars)
; expand_subgoal(SG, MS, M, ESG0, HeadVars),