Skip to content

Commit 9b0a631

Browse files
committed
Reduce dif
1 parent a1a04da commit 9b0a631

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ src/static_atoms.rs
22
target/
33
tests/scryer/cli/issues/incorrect_arithmetics.in/chnytjl.pl
44

5+
6+

src/loader.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
),
3636
write('.').
3737

38+
3839
:- meta_predicate maplistdif(3, ?, ?, ?).
40+
3941
maplistdif(_, [], [], L-L).
4042
maplistdif(G__2, [H1|T1], [H2|T2], L0-LX) :-
4143
call(G__2, H1, H2, L0-L1),
@@ -65,14 +67,14 @@
6567
arithmetic_term(func, 2, [+,-,/,*,**,^,/\,\/,xor,div,//,rdiv,<<,>>,mod,rem,max,min,gcd,atan2]).
6668
arithmetic_term(rela, 2, [is,>,<,>=,=<,=:=,=\=]).
6769

70+
6871
:- non_counted_backtracking '$print_message_and_fail'/1.
6972

7073
'$print_message_and_fail'(Error) :-
7174
write_error(Error),
7275
nl,
7376
'$fail'.
7477

75-
7678
expand_term(Term, ExpandedTerm) :-
7779
( '$predicate_defined'(user, term_expansion, 2),
7880
catch(user:term_expansion(Term, ExpandedTerm0),
@@ -99,6 +101,7 @@
99101
term_expansion_list(Terms, ExpandedTerms0Tail, ExpandedTermsTail)
100102
).
101103

104+
102105
:- non_counted_backtracking goal_expansion/3.
103106

104107
goal_expansion(G, _, Gx) :-

0 commit comments

Comments
 (0)