write_eq(G, VarList, MaxDepth) :-
write_last_goal(G, VarList, MaxDepth).
+list_last_item([C], C) :- !.
+list_last_item([_|Cs], D) :-
+ list_last_item(Cs, D).
+
term_variables_under_max_depth(Term, MaxDepth, Vars) :-
'$term_variables_under_max_depth'(Term, MaxDepth, Vars).
( Goals == [] ->
write('true.'), nl
; loader:thread_goals(Goals, ThreadedGoals, (',')),
- write_eq(ThreadedGoals, NewVarList0, 20),
+ write_eq(ThreadedGoals, NewVarList0, 200000),
write('.'),
nl
)
; loader:thread_goals(Goals, ThreadedGoals, (',')),
- write_eq(ThreadedGoals, NewVarList0, 20),
+ write_eq(ThreadedGoals, NewVarList0, 200000),
read_input(ThreadedGoals, NewVarList0)
).