optimise case where genarg is know to reduce to arg.
This commit is contained in:
parent
ba996c8dd5
commit
b9cf8ecf4b
@ -95,6 +95,7 @@
|
|||||||
|
|
||||||
goal_expansion(atom_concat(A,B),atomic_concat(A,B)).
|
goal_expansion(atom_concat(A,B),atomic_concat(A,B)).
|
||||||
goal_expansion(atom_concat(A,B,C),atomic_concat(A,B,C)).
|
goal_expansion(atom_concat(A,B,C),atomic_concat(A,B,C)).
|
||||||
|
goal_expansion(arg(A,_,_),_) :- nonvar(A), !, fail.
|
||||||
goal_expansion(arg(A,B,C),genarg(A,B,C)).
|
goal_expansion(arg(A,B,C),genarg(A,B,C)).
|
||||||
goal_expansion(time_file(A,B),system:swi_time_file(A,B)).
|
goal_expansion(time_file(A,B),system:swi_time_file(A,B)).
|
||||||
goal_expansion(get_time(A),system:swi_get_time(A)).
|
goal_expansion(get_time(A),system:swi_get_time(A)).
|
||||||
|
Reference in New Issue
Block a user