Skip to content

Commit

Permalink
Uncommenting "TxTree::blockCount++;" line at Executor.cpp to count ba…
Browse files Browse the repository at this point in the history
…sic block by TX
  • Loading branch information
sanghu1790 committed Oct 19, 2018
1 parent 967aad8 commit 7af2b41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Core/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1480,14 +1480,19 @@ void Executor::transferToBasicBlock(BasicBlock *dst, BasicBlock *src,
PHINode *first = static_cast<PHINode*>(state.pc->inst);
state.incomingBBIndex = first->getBasicBlockIndex(src);
}
if (INTERPOLATION_ENABLED)
if (INTERPOLATION_ENABLED){
// blockCount increased to count all visited Basic Blocks
TxTree::blockCount++;
}
//llvm::outs() << "**************\n";
//dst->back().dump();

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

//llvm::errs() << "************Dumping executed Blocks -- starts****************" << "\n";
//src->dump();
//dst->dump();
//llvm::errs() << "************Dumping executed Blocks -- Ends****************" << "\n";

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"))
{
Expand Down

0 comments on commit 7af2b41

Please sign in to comment.