Skip to content

Commit 360c68b

Browse files
committed
Uncommenting "TxTree::blockCount++;" line at Executor.cpp to count basic block by TX
1 parent 00595ca commit 360c68b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Core/Executor.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,14 +1480,19 @@ void Executor::transferToBasicBlock(BasicBlock *dst, BasicBlock *src,
14801480
PHINode *first = static_cast<PHINode*>(state.pc->inst);
14811481
state.incomingBBIndex = first->getBasicBlockIndex(src);
14821482
}
1483-
if (INTERPOLATION_ENABLED)
1483+
if (INTERPOLATION_ENABLED){
14841484
// blockCount increased to count all visited Basic Blocks
14851485
TxTree::blockCount++;
1486+
}
14861487
//llvm::outs() << "**************\n";
14871488
//dst->back().dump();
14881489

14891490
//visitedBlocks.insert(dst); //count all destination basic blocks
14901491

1492+
//llvm::errs() << "************Dumping executed Blocks -- starts****************" << "\n";
1493+
//src->dump();
1494+
//dst->dump();
1495+
//llvm::errs() << "************Dumping executed Blocks -- Ends****************" << "\n";
14911496

14921497
if((kf->function->getName() != "klee_div_zero_check") && (kf->function->getName()!= "klee_range") && (kf->function->getName() != "klee_int") && (kf->function->getName() != "klee_overshift_check") && (kf->function->getName() != "memcpy") && (kf->function->getName() != "memmove") && (kf->function->getName() != "mempcpy") && (kf->function->getName() != "memset"))
14931498
{

0 commit comments

Comments
 (0)