]> git.eshelyaron.com Git - emacs.git/commit
Constrain mvars under compare and branch with built-in predicates
authorAndrea Corallo <akrl@sdf.org>
Tue, 29 Dec 2020 12:29:02 +0000 (13:29 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 29 Dec 2020 16:49:30 +0000 (17:49 +0100)
commitc4efb49a27f05284d28eac7f60b28495c68f63fb
tree0d80e074e33c9cbfbbbdca07dbfe27da861f89bc
parente83c6994e1f2553634e0877e86a8ebaa19fbc5d1
Constrain mvars under compare and branch with built-in predicates

* lisp/emacs-lisp/comp.el (comp-emit-assume): Update.
(comp-known-predicate-p): New function.
(comp-add-cond-cstrs): Extend to pattern match predicate calls.
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-null-p)
(comp-pred-to-cstr): New function.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a
number of tests and fix comments.
lisp/emacs-lisp/comp-cstr.el
lisp/emacs-lisp/comp.el
test/src/comp-tests.el