swipl 8.4.1, trill 6.0.3
Hi, I get Stack Traces in Package Trill:
:- use_module(library(trill)).
:- trill. % or :- trillp. or :- tornado.
classAssertion( smartphone, sm0815).
propertyAssertion( has, egon, sm0815).
equivalentClasses( [someValuesFrom( has, smartphone), smartperson]).
/*
(ins)?- instanceOf( smartperson, egon, E).
E = [equivalentClasses([someValuesFrom(has, smartphone), smartperson]), classAssertion(smartphone, sm0815), propertyAssertion(has, egon, sm0815)] ;
false.
(ins)?- axiom(A).
A = equivalentClasses([someValuesFrom(has, smartphone), smartperson]) ;
A = propertyAssertion(has, egon, sm0815) ;
A = classAssertion(smartphone, sm0815) ;
false.
(ins)?- property_value(has, egon, sm0815, E).
E = [propertyAssertion(has, egon, sm0815)] ;
false.
% now the interesting part:
(ins)?- property_value(has, sm0815, egon, E).
ERROR: Stack limit (1.0Gb) exceeded
ERROR: Stack sizes: local: 0.8Gb, global: 0.1Gb, trail: 40.1Mb
ERROR: Stack depth: 1,753,754, last-call: 0%, Choice points: 3,507,452
ERROR: Possible non-terminating recursion:
ERROR: [1,753,752] trill:ancestor1([length:1], [length:2], [length:2], _31595778)
ERROR: [1,753,751] trill:ancestor1([length:1], [length:2], [length:2], _31595820)
Exception: (1,753,753) trill:add_all_n([sm0815], [], _31595700) ? abort
% Execution Aborted
(ins)?- property_value(has, egon, egon, E).
ERROR: Stack limit (1.0Gb) exceeded
ERROR: Stack sizes: local: 0.8Gb, global: 0.1Gb, trail: 41.8Mb
ERROR: Stack depth: 2,738,385, last-call: 0%, Choice points: 2,738,367
ERROR: Probable infinite recursion (cycle):
ERROR: [2,738,382] trill:ancestor1([length:1], [length:2], [length:1], _32868790)
ERROR: [2,738,381] trill:ancestor1([length:1], [length:2], [length:1], _32868832)
Exception: (2,738,383) trill:add_all_n([egon], [egon], _32868718) ? abort
% Execution Aborted
(ins)?- property_value(has, sm0815, sm0815, E).
ERROR: Stack limit (1.0Gb) exceeded
ERROR: Stack sizes: local: 0.9Gb, global: 74.0Mb, trail: 37.0Mb
ERROR: Stack depth: 1,616,599, last-call: 0%, Choice points: 3,233,144
ERROR: Probable infinite recursion (cycle):
ERROR: [1,616,595] trill:ancestor1([length:2], [length:2], [length:2], _19407406)
ERROR: [1,616,594] trill:ancestor1([length:2], [length:2], [length:2], _19407448)
Exception: (1,616,597) trill:add_all_n([sm0815], [egon, sm0815], _19407334) ? abort
% Execution Aborted
*/
Thanks in advance,
Frank