Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dif/2 crash #1378

Closed
infradig opened this issue Mar 29, 2022 · 1 comment
Closed

dif/2 crash #1378

infradig opened this issue Mar 29, 2022 · 1 comment

Comments

@infradig
Copy link

infradig commented Mar 29, 2022

$ scryer-prolog
?- dif([a],B), B=[Z].
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/machine/machine_state_impl.rs:1624:61
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ 
@UWN
Copy link

UWN commented Mar 29, 2022

Stringrelated.

?- dif([[]],B), B=[_|_].
   B = [_A|_B], dif:dif([[]],[_A|_B]).
?- E=a,dif([E],B), B=[_|_].
   E = a, B = [_A|_B], dif:dif("a",[_A|_B]).
?- dif([a],B), B=[_|_].
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/machine/machine_state_impl.rs:1624:61

mthom added a commit that referenced this issue Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants