-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a reproduction case for issue #173. Discovered by @Lozov-Petr
Signed-off-by: Dmitrii.Kosarev a.k.a. Kakadu <[email protected]>
- Loading branch information
Dmitrii.Kosarev a.k.a. Kakadu
authored and
Dmitrii.Kosarev a.k.a. Kakadu
committed
Dec 17, 2024
1 parent
962312e
commit 9def363
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$ ./test014diseq.exe | ||
rel, 1 answer { | ||
Fatal error: exception File "src/core/Disequality.ml", line 177, characters 8-14: Assertion failed | ||
[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
open OCanren | ||
open Tester | ||
|
||
let rel list1 = | ||
let open OCanren.Std in | ||
fresh | ||
(list2 hd1 tl1 hd2 tl2) | ||
(list1 =/= list2) | ||
(list1 === hd1 % tl1) | ||
(list2 === hd2 % tl2) | ||
(hd2 === !!1) | ||
(tl2 === nil ()) | ||
(hd1 === !!1) | ||
(tl1 === nil ()) | ||
;; | ||
|
||
(* let () = [%tester run_r [%show GT.int GT.list] (Std.List.reify reify) 1 (fun q -> rel q)] *) | ||
let () = run_r (Std.List.reify reify) ([%show: GT.int logic Std.List.logic] ()) 1 q qh (REPR rel) |