Skip to content

Commit

Permalink
Regression
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Oct 2, 2024
1 parent 7a70721 commit 140ca79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ set(ethos_test_file_list
simple-reference.eo
simple-quant-reference.eo
simple-lra-reference.eo
overload-standalone.eo
)

if(ENABLE_ORACLES)
Expand Down
14 changes: 14 additions & 0 deletions tests/overload-standalone.eo
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(declare-const or (-> Bool Bool Bool) :right-assoc-nil false)
(declare-const = (-> (! Type :var T :implicit) T T Bool))

(declare-const a Bool)
(declare-const b Bool)

(define singleton-list ((T Type :implicit) (f (-> T T T)) (a T)) (eo::cons f a (eo::nil f)))

(declare-rule refl ((T Type) (t T))
:args (t)
:conclusion (= t t)
)

(step @p0 (= (or b) (or b)) :rule refl :args ((singleton-list or b)))

0 comments on commit 140ca79

Please sign in to comment.