Skip to content

Commit 3e0ba7b

Browse files
committed
Cumulative updates
1 parent faba8cc commit 3e0ba7b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "tip"
22

3-
scalaVersion := "2.12.8"
3+
scalaVersion := "2.12.12"
44

55
trapExit := false
66

src/tip/concolic/ConcolicEngine.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ConcolicEngine(val program: AProgram)(implicit declData: DeclarationData)
2929
log.info(s"Execution tree status: \n${ExecutionTreePrinter.printExecutionTree(root)}")
3030
target match {
3131
case Some((targetNode, value)) =>
32-
val pc = targetNode.pathCondition(List((targetNode.symcond, value)))
32+
val pc = targetNode.pathCondition(List((targetNode.symcondition, value)))
3333
log.info(s"Path condition for next run: $pc")
3434
val smt = SMTSolver.pathToSMT(symbols, pc)
3535
log.info(s"SMT script for next run: \n$smt")

src/tip/concolic/ExecutionTree.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ sealed trait ExecutionTree { self =>
2121
parent match {
2222
case b: Branch if b.branches(true) == self =>
2323
// self node is in the true branch
24-
(b.symcond, true) :: b.pathCondition(suffix)
24+
(b.symcondition, true) :: b.pathCondition(suffix)
2525
case b: Branch if b.branches(false) == self =>
2626
// self node is in the false branch
27-
(b.symcond, false) :: b.pathCondition(suffix)
27+
(b.symcondition, false) :: b.pathCondition(suffix)
2828
case _ => parent.pathCondition(suffix)
2929
}
3030

@@ -90,7 +90,7 @@ class UnsatSubTree(val parent: Branch) extends ExecutionTree {
9090
*/
9191
class Branch(
9292
val condition: AExpr,
93-
val symcond: AExpr,
93+
val symcondition: AExpr,
9494
val parent: ExecutionTree,
9595
val branches: mutable.Map[Boolean, ExecutionTree] = mutable.Map(),
9696
val count: mutable.Map[Boolean, Int] = mutable.Map()
@@ -105,7 +105,7 @@ class Branch(
105105

106106
override def branch(cond: AExpr, symcond: AExpr, value: Boolean): ExecutionTree = {
107107
assert(cond == condition)
108-
assert(symcond == symcond)
108+
assert(symcondition == symcond)
109109
log.info(s"Encountered seen branching condition: $cond")
110110
log.info(s"Exploring ${if (count(value) == 0) "unseen " else ""}$value branch")
111111
count(value) += 1
@@ -133,7 +133,7 @@ object ExecutionTreePrinter {
133133
else
134134
"<??>"
135135
case _: UnsatSubTree => "<unsat>"
136-
case b: Branch => s"${b.symcond} (${b.condition})"
136+
case b: Branch => s"${b.symcondition} (${b.condition})"
137137
case _ => ???
138138
}
139139
out.append(str)

src/tip/interpreter/Interpreter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ abstract class Interpreter(program: AProgram)(implicit declData: DeclarationData
6060
}
6161
// Store the input in the associated argument locations
6262
val storeWithInputArgs = program.mainFunction.params.foldLeft(boundStore) { (s: Store, id: AIdentifierDeclaration) =>
63-
val (v, s2) = input(AIdentifier(id.value, id.loc), boundEnv, boundStore)
63+
val (v, s2) = input(AIdentifier(id.value, id.loc), boundEnv, s)
6464
s2 + (envWithInputArgs(id) -> v)
6565
}
6666
// Execute the main function

0 commit comments

Comments
 (0)