Skip to content

Commit

Permalink
Reorder to match docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli committed Dec 19, 2023
1 parent 495c0e0 commit cf6835b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/ast/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,12 +1555,6 @@ KOREPattern *KOREAxiomDeclaration::getRightHandSide() const {
* requires(\rewrites(\and(\not(_), \and(\top(), _)), _) = nullptr
* requires(\rewrites(\and(_, \equals(X, _)), _)) = X
* requires(\rewrites(\and(_, \top()), _)) = nullptr
*
* requires(\implies(\and(\not(_), \and(\equals(X, _), _)), _)) = X
* requires(\implies(\and(\equals(X, _), _), _)) = X
* requires(\rewrites(\and(\equals(X, _), _), _)) = X
* requires(\rewrites(\and(\not(_), \and(\equals(X, _), _)), _) = X
* requires(\rewrites(\and(_, \equals(X, _)), _)) = X
*/
KOREPattern *KOREAxiomDeclaration::getRequires() const {
using namespace kllvm::pattern_matching;
Expand All @@ -1576,12 +1570,10 @@ KOREPattern *KOREAxiomDeclaration::getRequires() const {
matcher(implies_(
and_(not_(any), and_(equals_(subject(any), any), any)), any)),
matcher(implies_(and_(equals_(subject(any), any), any), any)),
matcher(rewrites_(and_(equals_(subject(any), any), any), any)),
matcher(rewrites_(
and_(not_(any), and_(equals_(subject(any), any), any)), any)),
matcher(rewrites_(
and_(not_(any), and_(equals_(subject(any), any), any)), any)),
matcher(rewrites_(and_(any, equals_(subject(any), any)), any)),
matcher(rewrites_(and_(equals_(subject(any), any), any), any)));
matcher(rewrites_(and_(any, equals_(subject(any), any)), any)));

auto result = patterns.match(pattern);
if (result) {
Expand Down

0 comments on commit cf6835b

Please sign in to comment.