EXAMPLE(S): ?-#(1,2,_A). _A = 3; no
EXAMPLE(S): ?-*(10,3,_A). _A = 30; no
EXAMPLE(S): ?-**(2,3,_A). _A = 8; no
EXAMPLE(S): ?-+(10,3,_A). _A = 13; no
EXAMPLE(S): ?--(10,3,_A). _A = 7; no
EXAMPLE(S): ?-/(10,3,_A). _A = 3.33333333; no
EXAMPLE(S): ?-//(10,3,_A). _A = 3; no
EXAMPLE(S): ?-/\(1,2,_A). _A = 0; no
EXAMPLE(S): ?-<<(1,5,_A). _A = 32; no
EXAMPLE(S): ?-f(_A,s(a)) = f(_B,_B). _A = s(a); _B = s(a); no
EXAMPLE(S): ?-f(a,b) =.. _A. _A = [f,a,b]; no ?-_A =.. [f,a,b]. _A = f(a,b); no
EXAMPLE(S): ?->>(16,2,_A). _A = 4; no
EXAMPLE(S): ?-\(0,2,_A). _A = -3; no
EXAMPLE(S): ?-\/(1,2,_A). _A = 3; no
EXAMPLE(S): ?-_A^eq(_A,1). _A = 1; no
EXAMPLE(S): ?-abstime(_A). _A = 343416141; no
EXAMPLE(S): ?-addq(key1,key2,33). yes
EXAMPLE(S): ?-all_answers(_A,member(s(_A),[_B,_C,_C,_D]),_E). _A = _x61091; _B = s(_x62212); _C = s(_x62239); _D = s(_x62293); _E = [_x62212,_x62239,_x62239,_x62293]; no
EXAMPLE(S): ?-append([1,2],[3,4],_A). _A = [1,2,3,4]; no ?-append(_A,_B,[1,2]). _A = []; _B = [1,2]; _A = [1]; _B = [2]; _A = [1,2]; _B = []; no
EXAMPLE(S): ?-appendN([[a,b],[],[c]],_A). _A = [a,b,c]; no
EXAMPLE(S): ?-apropos(garbage). use info/1 to get a description of a predicate garbage_collect/0-[built_in,performs heap gc now] yes
EXAMPLE(S): ?-apropos(retract,_A). _A = retract/1-[built_in,backtracks over deleting matching clauses]; _A = retract1/1-[built_in,deletes first matching clause in the current database]; _A = retractall/1-[built_in,deletes all matching clauses]; _A = x_retract/1-[built_in,db hook, backtracks over deleting matching clauses]; _A = x_retractall/1-[built_in,db hook, deletes all matching clauses]; _A = db_retract/2-[built_in,does retract/1 arg 2 from database given as arg 1]; _A = db_retract/3-[built_in,db_retract(Db,H,B) retracts clause with head H and body B from database Db]; _A = db_retract1/2-[built_in,deletes from database given as arg 1 a matching clause]; _A = db_retractall/2-[built_in,removes from database given as arg 1, all matching clauses]; _A = db_retractall/3-[built_in,removes from database given as arg 1, all matching clauses seen as head + body]; _A = prolog:x_retract_each/1-[compiled]; _A = prolog:db_retractall0/3-[compiled]; _A = prolog:x_retract/2-[compiled]; _A = prolog:x_retract_args/5-[compiled]; no
EXAMPLE(S): ?-arg(2,f(a,b),_A). _A = b; no
EXAMPLE(S): ?-argn(_A,f(a,b),_B). _A = 1; _B = a; _A = 2; _B = b; no
EXAMPLE(S): ?-atom(a). yes
EXAMPLE(S): ?-atom_chars(hello,_A). _A = [h,e,l,l,o]; no ?-atom_chars(_A,[104,101,108,108,111]). no
EXAMPLE(S): ?-atom_codes(hello,_A). _A = [104,101,108,108,111]; no ?-atom_codes(_A,[104,101,108,108,111]). _A = hello; no
EXAMPLE(S): ?-bagof(_A,member(_A,[3,2,2,1]),_B). _A = _x61091; _B = [3,2,2,1]; no
EXAMPLE(S): ?-cdelq(key1,key2,_A,_B). _A = _x61095; _B = 33; no
EXAMPLE(S): ?-cdelq_any(key1,key2,_A). no
EXAMPLE(S): ?-ceiling(1.3,_A). _A = 2; no
EXAMPLE(S): ?-change_arg(2,f(a,b),c). yes
EXAMPLE(S): ?-clone_term([_A,_C],f(_A,_B,_B,_C),_D). _A = _x61783; _B = _x61101; _C = _x61786; _D = f(_x61783,_x61784,_x61784,_x61786); no
EXAMPLE(S): ?-cmembq(key1,key2,_A). no
EXAMPLE(S): ?-compare(_A,1,2). _A = (<); no ?-compare(_A,f(b),f(a)). _A = (>); no ?-compare(_A,s(_B),s(_B)). _A = (=); _B = _x61101; no
EXAMPLE(S): ?-compound(f(a)). yes
EXAMPLE(S): ?-copy_term(f(_A,_A,_B,_B),_C). _A = _x61092; _B = _x61094; _C = f(_x61580,_x61580,_x61582,_x61582); no
EXAMPLE(S): ?-cpopq(key1,key2,_A). no
EXAMPLE(S): ?-ctime(_A). _A = 265; no
EXAMPLE(S): ?-dcg_telling(_A). _A = 1; no
EXAMPLE(S): ?-deep_hash(f(a),5,0,_A). _A = 23114257; no ?-deep_hash(f(b),1,32,_A). _A = 18; no
EXAMPLE(S): ?-default(host(_A),_A = localhost). _A = localhost; no
EXAMPLE(S): ?-findall(s(_A),(member(_A,[1,2,3]),_A > 1),_B). _A = _x61095; _B = [s(2),s(3)]; no
EXAMPLE(S): ?-findall(s(_A),(_A = 1 ; _A = 2),_B,[3,4]). _A = _x61102; _B = [s(1),s(2),3,4]; no
EXAMPLE(S): ?-float(3.14). yes
EXAMPLE(S): ?-floor(1.3,_A). _A = 1; no
EXAMPLE(S): ?-foldl(+,0,[10,20,30],_A). _A = 60; no
EXAMPLE(S): ?-foldr(+,0,[10,20,30],_A). _A = 60; no
EXAMPLE(S): ?-for(_A,1,3). _A = 1; _A = 2; _A = 3; no
EXAMPLE(S): ?-functor(f(a,b),_A,_B). _A = f; _B = 2; no ?-functor(_A,f,3). _A = f(_x61710,_x61711,_x61712); no ?-functor(f(a),f,1). yes
EXAMPLE(S): ?-ground(f(a,b)). yes
EXAMPLE(S): ?-help(assert). use info/1 to get a description of a predicate assert/1-[built_in,adds a clause] assert_from_chars/1-[built_in,asserts a program from clauses in list of chars] assert_from_chars/2-[built_in,(Db,Cs) asserts to database Db, a set of clauses parsed from list of char codes Cs] asserta/1-[built_in,adds a clause to be first in a predicate definition] asserted/1-[built_in,runs a predicated if asserted] assertz/1-[built_in,adds a clause to be last in a predicate definition] db_assert/2-[built_in,does assert/1 arg 2 into database given as arg 1] db_asserta/2-[built_in,does asserta/1 arg 2 into database given as arg 1] db_asserted/2-[built_in,runs predicate arg 2 if asserted in database arg 1] db_assertz/2-[built_in,does assertz/1 arg 2 into database given as arg 1] get_asserted/2-[built_in] is_asserted/1-[built_in,checks if currently asserted] prolog:assert_it/2-[compiled] prolog:db_is_asserted/2-[compiled] prolog:is_asserted_clause/1-[compiled] prolog:x_assert/2-[compiled] prolog:x_assert_op/3-[compiled] x_asserta/1-[built_in,db hook, adds a clause to be first in a predicate definition] x_assertz/1-[built_in,db hook, adds a clause to be last in a predicate definition] yes
EXAMPLE(S): ?-hkey(t(a,b),_A). _A = 236945626; no ?-hkey(t(a,c),_A). _A = 236945625; no
EXAMPLE(S): ?-_A is 3+4*2. _A = 11; no
EXAMPLE(S): ?-is_builtin(var(_A)). _A = _x61088; no
EXAMPLE(S): ?-keygroup([3-a,1-a,2-b,1-c,2-d],_A,_B). _A = 1; _B = [a,c]; _A = 2; _B = [b,d]; _A = 3; _B = [a]; no
EXAMPLE(S): ?-keysort([3-a,1-a,2-b,1-c,2-d],_A). _A = [1-a,1-c,2-b,2-d,3-a]; no
EXAMPLE(S): ?-load_method(_A,_B). _A = 1; _B = mcompile; _A = 2; _B = scompile; _A = 3; _B = oconsult; _A = 4; _B = dconsult; _A = 5; _B = sconsult; _A = 6; _B = load; no
EXAMPLE(S): ?-log(2,8,_A). _A = 3; no
EXAMPLE(S): ?-lval(a,b,f(_A)). _A = _x61110; no
EXAMPLE(S): ?-map(println,[10,20,30]). 10 20 30 yes
EXAMPLE(S): ?-map(+1,[10,20],_A). _A = [11,21]; no
EXAMPLE(S): ?-member(2,[1,2]). yes ?-member(_A,[1,2]). _A = 1; _A = 2; no
EXAMPLE(S): ?-member_conj(_A,(a,b,true)). _A = a; _A = b; no
EXAMPLE(S): ?-member_scan(s(_A),[1,s(s(_B)),2],_C). _A = _x61111; _B = _x61121; _C = [s(s(_x61121)),2]; no
EXAMPLE(S): ?-merge_sort(>,[1,3,2,2,4],_A). _A = [4,3,2,2,1]; no
EXAMPLE(S): ?-mod(10,3,_A). _A = 1; no
EXAMPLE(S): ?-msort([2,1,3,1,4,4,2],_A). _A = [1,1,2,2,3,4,4]; no
EXAMPLE(S): ?-name(hello,_A). _A = [104,101,108,108,111]; no ?-name(_A,[98,121,101]). _A = bye; no
EXAMPLE(S): ?-namecat(a,:,b,_A). _A = a:b; no
EXAMPLE(S): ?-nth_member(_A,[a,b,c],_B). _A = a; _B = 1; _A = b; _B = 2; _A = c; _B = 3; no
EXAMPLE(S): ?-number_chars(1999,_A). _A = [1,9,9,9]; no
EXAMPLE(S): ?-number_codes(1999,_A). _A = [49,57,57,57]; no ?-number_codes(_A,[50,48,48,49]). _A = 2001; no
EXAMPLE(S): ?-otime(_A). _A = 343416141; no
EXAMPLE(S): ?-phrase(([a],[b]),[a,b|_A],_A). _A = _x61093; no
EXAMPLE(S): ?-pow(2,3,_A). _A = 8; no
EXAMPLE(S): ?-predicate_property(write(_A),_B). _A = _x61092; _B = built_in; no
EXAMPLE(S): ?-prod([10,20],_A). _A = 200; no
EXAMPLE(S): ?-pushq(key1,key2,f(_A,_A)). _A = _x61094; no
EXAMPLE(S): ?-put(99). c yes
EXAMPLE(S): ?-put_code(99). c yes
EXAMPLE(S): ?-random(_A). _A = 1457; no
EXAMPLE(S): ?-read_term_from_chars([102,40,88,44,88,44,89,44,89,41],_A). _A = f(_x62944,_x62944,_x62995,_x62995); no
EXAMPLE(S): ?-read_term_from_chars([102,40,88,44,88,44,89,44,89,41],_A,_B). _A = f(_x63012,_x63012,_x63063,_x63063); _B = [X = _x63012,Y = _x63063]; no
EXAMPLE(S): ?-read_terms_from_chars([98,40,88,44,89,41,58,45,97,40,89,44,88,41,46,32,97,40,49,44,49,41,46,32,97,40,95,44,50,41,46,32],_A,_B). _A = (b(_x64809,_x64837) :- a(_x64837,_x64809)); _B = [X = _x64809,Y = _x64837]; _A = a(1,1); _B = []; _A = a(_x64408,2); _B = [_ = _x64408]; no
EXAMPLE(S): ?-reverse([a,b,c],_A). _A = [c,b,a]; no
EXAMPLE(S): ?-round(1.51,_A). _A = 2; no
EXAMPLE(S): ?-rtime(_A). _A = 0; no
EXAMPLE(S): ?-setarg(2,f(a,b),c). yes
EXAMPLE(S): ?-setof(_A,member(_A,[3,2,2,1]),_B). _A = _x61091; _B = [1,2,3]; no
EXAMPLE(S): ?-solutions(argn(_A,f(a,b,c)),_B). _A = _x61092; _B = [a,b,c]; no
EXAMPLE(S): ?-sort([2,1,3,1,4,4,2],_A). _A = [1,2,3,4]; no
EXAMPLE(S): ?-sqrt(2,_A). _A = 1.41421356; no
EXAMPLE(S): ?-sread(f(X,Y),_A,_B). _A = f(_x62165,_x62193); _B = [X = _x62165,Y = _x62193]; no
EXAMPLE(S): ?-statistics. runtime=[421,156] global_stack=[245064,1819260] local_stack=[244,260864] trail=[33684,227432] code=[260404,788156] strings=[246,1048330] symbols=[13028,249116] htable=[113988,672444] bboard=[24988,497248] gctime=[0,0] realtime=[0,343416141] yes
EXAMPLE(S): ?-statistics(_A,_B). _A = runtime; _B = [421,0]; _A = global_stack; _B = [245600,1818724]; _A = local_stack; _B = [228,260880]; _A = trail; _B = [33704,227412]; _A = code; _B = [260404,788156]; _A = strings; _B = [246,1048330]; _A = symbols; _B = [13028,249116]; _A = htable; _B = [113988,672444]; _A = bboard; _B = [24988,497248]; _A = gctime; _B = [0,0]; _A = realtime; _B = [0,343416141]; no
EXAMPLE(S): ?-sum([10,20],_A). _A = 30; no
EXAMPLE(S): ?-symcat(a,b,_A). _A = a_b; no ?-symcat(a,1,_A). _A = a_1; no
EXAMPLE(S): ?-term_append(f(a,b),g(c,d),_A). _A = f(a,b,c,d); no
EXAMPLE(S): ?-term_chars(f(a,b),_A). _A = [102,40,97,44,98,41]; no ?-term_chars(_A,[102,40,97,44,98,41]). _A = f(a,b); no
EXAMPLE(S): ?-term_codes(f(a,b),_A). _A = [102,40,97,44,98,41]; no ?-term_codes(_A,[102,40,97,44,98,41]). _A = f(a,b); no
EXAMPLE(S): ?-term_hash(t(a,b),_A). _A = 236945626; no ?-term_hash(t(a,c),_A). _A = 236945625; no
EXAMPLE(S): ?-to_string(13,_A). _A = 13; no ?-to_string(3.14,_A). _A = 3.14; no ?-to_string(f(_A,_A),_B). _A = _x61099; _B = f(_x61099,_x61099); no
EXAMPLE(S): ?-truncate(1.51,_A). _A = 1; no
EXAMPLE(S): ?-unix_argc(_A). _A = 2; no
EXAMPLE(S): ?-unix_argv(_A). _A = [helpgen.pro]; no
EXAMPLE(S): ?-unix_argv(0,_A). _A = bp; no
EXAMPLE(S): ?-vars_of(f(_A,t(_A,_B,_C),_C),_D). _A = _x61092; _B = _x61097; _C = _x61094; _D = [_x61092,_x61097,_x61094]; no
EXAMPLE(S): ?-write_chars([104,101,108,108,111]). hello yes
EXAMPLE(S): ?-write_term_to_chars(f(_A,_A,_B,_B),_C). _A = _x61095; _B = _x61097; _C = [102,40,95,120,54,49,48,57,53,44,95,120,54,49,48,57,53,44,95,120,54,49,48,57,55,44,95,120,54,49,48,57,55,41]; no
EXAMPLE(S): ?-write_term_to_chars(f(_A,_B),[X = _A,Y = _B],_C). _A = _x61098; _B = _x61099; _C = [102,40,39,88,39,44,39,89,39,41]; no