Research Article
A Novel Vulnerable Code Clone Detector Based on Context Enhancement and Patch Validation
Algorithm 1
Line-level vulnerable code clone detection algorithm.
Input:T, F | Output:r | Initialize:r←False | 1.if |T|<|F| then | 2. returnr | 3.end if | 4.for eachtinT do | 5. j←0 | 6. for eachfinFdo | 7. ift = fthen | 8. goto 14 | 9. end if | 10. j←j+1 | 11. ifj=|F| then | 12. returnr | 13. end if | 14. end for | 15.end for | 16. r←True | 17.returnr |
|