Skip to content

Commit

Permalink
Remove failing function and test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jad-hamza committed Apr 29, 2021
1 parent e0b6a34 commit 73cec66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 56 deletions.
18 changes: 0 additions & 18 deletions src/main/scala/z3/scala/Z3Context.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1024,24 +1024,6 @@ sealed class Z3Context(val config: Map[String, String]) {
res
}

// XXX: this is a HUGE hack to get around the fact that the Z3 api doesn't
// provide a handle to the absolute value function.
def getAbsFuncDecl(): Z3FuncDecl = {
val ast = parseSMTLIB2String("""
(declare-fun x () Int)
(declare-fun y () Int)
(assert (= y (abs x)))
""")

getASTKind(ast) match {
case Z3AppAST(_, Seq(_, absAst)) => getASTKind(absAst) match {
case Z3AppAST(decl, _) => decl
case c => error("Unexpected ast kind " + c)
}
case c => error("Unexpected ast kind " + c)
}
}

// Parser interface
private def parseSMTLIB2(file: Boolean, str: String) : Z3AST = {
if(file) {
Expand Down
38 changes: 0 additions & 38 deletions src/test/scala/z3/scala/Abs.scala

This file was deleted.

0 comments on commit 73cec66

Please sign in to comment.