Skip to content

Commit

Permalink
Update BitVectorExpressions.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenzlevi committed Mar 31, 2024
1 parent f4dd11f commit 68aca00
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,22 @@ object BVUltDecl :
bindings: Bindings
): Expression<BoolSort> = BVUlt(param1, param2)
}

fun BVNAnd(lhs: Expression<BVSort>, rhs: Expression<BVSort>) : Expression<BVSort> = BVNot(BVAnd(lhs, rhs))

object BVNAndDecl :
FunctionDecl2<BVSort, BVSort, BVSort>(
"bvnand".symbol(),
emptySet(),
BVSort.fromSymbol("m"),
BVSort.fromSymbol("m"),
emptySet(),
setOf(SymbolIndex("m")),
BVSort.fromSymbol("m")
) {
override fun buildExpression(
param1: Expression<BVSort>,
param2: Expression<BVSort>,
bindings: Bindings
): Expression<BVSort> = BVNAnd(param1, param2)
}

0 comments on commit 68aca00

Please sign in to comment.