Unexpected failure
triska opened this issue · comments
Markus Triska commented
With the following program:
bit_char(0, '0'). bit_char(1, '1').
I get:
?- H is 0 >> 0, bit_char(H, A). false, unexpected.
Yet the following more specific query succeeds as expected:
?- H = 0, H is 0 >> 0, bit_char(H, A). H = 0, A = '0'. % expected
Markus Triska commented
I updated the original example with a shorter program.
Markus Triska commented
The arithmetic function (<<)/2
exhibits the same issue:
?- H is 0 << 0, bit_char(H, A). false, unexpected.
Markus Triska commented
Thank you a lot!