Skip to content

Instantly share code, notes, and snippets.

@PlloYNiiE
Created March 21, 2011 23:12
Show Gist options
  • Select an option

  • Save PlloYNiiE/880442 to your computer and use it in GitHub Desktop.

Select an option

Save PlloYNiiE/880442 to your computer and use it in GitHub Desktop.
motherfucker.cpp
if (this->A->getOrderVector()->size() == this->B->getOrderVector()->size())
{
this->totalStmt = this->A->getOrderVector()->size()-1;
this->equalStmt = imitate_count;
this->similarity_percent = this->equalStmt/this->totalStmt;
llvm::outs() << " Similarity Percentage: " <<this->A->getOrderVector()->size()/imitate_count<< "%\n";
llvm::outs() << " Similarity Percentage: " << this->A->getOrderVector()->size()/imitate_count << "%\n";
this->similarity_percent = this->A->getOrderVector()->size()/imitate_count*100;
llvm::outs() << " X " << this->equalStmt;
llvm::outs() << " Y " << this->totalStmt;
llvm::outs() << " Z " << imitate_count;
llvm::outs() << " Similarity Percentage: " << this->similarity_percent << "%\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment