Skip to content

Commit 73cec66

Browse files
committed
Remove failing function and test suite
1 parent e0b6a34 commit 73cec66

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

src/main/scala/z3/scala/Z3Context.scala

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,24 +1024,6 @@ sealed class Z3Context(val config: Map[String, String]) {
10241024
res
10251025
}
10261026

1027-
// XXX: this is a HUGE hack to get around the fact that the Z3 api doesn't
1028-
// provide a handle to the absolute value function.
1029-
def getAbsFuncDecl(): Z3FuncDecl = {
1030-
val ast = parseSMTLIB2String("""
1031-
(declare-fun x () Int)
1032-
(declare-fun y () Int)
1033-
(assert (= y (abs x)))
1034-
""")
1035-
1036-
getASTKind(ast) match {
1037-
case Z3AppAST(_, Seq(_, absAst)) => getASTKind(absAst) match {
1038-
case Z3AppAST(decl, _) => decl
1039-
case c => error("Unexpected ast kind " + c)
1040-
}
1041-
case c => error("Unexpected ast kind " + c)
1042-
}
1043-
}
1044-
10451027
// Parser interface
10461028
private def parseSMTLIB2(file: Boolean, str: String) : Z3AST = {
10471029
if(file) {

src/test/scala/z3/scala/Abs.scala

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)