Skip to content

Tiffanylqc/LCS-based-code-plagiarism-detector

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 

LCS-based-code-plagiarism-detector

Introduction

This Longest Common Subsequence based detector tries to detect plagiarism in short programs like programming assignments. It considers similarity for both LLVM basic blocks and code execution paths. Check report here

Build

mkdir build && cd build
cmake -DLLVM_DIR=<path/to/llvm> ..
make

Running

Running the detector with instruction histogram based method:

./bin/ppa-detector --instruction-histogram <plaintiff>.bc <suspicious>.bc

Running the detector with sampling based dynamic analysis method:

./bin/ppa-detector --sebb <plaintiff>.bc <suspicious>.bc </path/to/input/folder> --relocation-model=pic

About

A code plagiarism detector based on Longest Common Subsequence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published