List unification problem
Posted: 24 Feb 2018 10:48
Hello Thomas,
please check this code. It outputs "not unfiable" (in VIP 8 build 801).
Maybe same problem causes error c998 : The variable 'X' can be both free and bound in
and fatal error c099 : Internal error, dump file was stored to ...' in
please check this code. It outputs "not unfiable" (in VIP 8 build 801).
Code: Select all
class predicates
test : (unsigned, unsigned).
clauses
test(A, B) :-
if [A, X] = [X, B] then
stdIO::write("unifies")
else
stdIO::write("not unfiable")
end if.
clauses
run() :-
test(1, 1).
Code: Select all
if [1, 2] = [X, X] then
end if.
Code: Select all
if [1, 2] = [X | X] then
end if.