:-module(trill_test, [close_to/2,close_to/3,run/1]). :- meta_predicate run(:). run(M:H):- copy_term(H,NH), numbervars(NH), % NH=(_Query,close_to('P',_Prob)), format("~p.~n",[NH]), (H=(G,R)), time(call(M:G)),!, format("\t~p.~n~n",[G]), call(R). epsilon(0.09). close_to(V,T):- epsilon(E), TLow is T-E, THigh is T+E, TLow