gprolog
gprolog copied to clipboard
clpfd: unexpected failure
| ?- fd_domain([A],0,1),A#==>0#>0/0.
no % unexpected
| ?- A=0, fd_domain([A],0,1),A#==>0#>0/0.
A = 0 % expected
Related to #86.
Just a general remark: I do not test GNU any further for its clpfd-extension as this issue here is not fixed.
I understand but this case is rather difficult to fix in practice in the general case (this is a particular case only). Maybe raise an error when 0/0 appears (even in 0#==>0/0)...
An error for 0/0 does not make sense. Other systems just fixed this as SICStus withdrew 4.3.4, and SWI (at that time) alike.
UWN_blocking