Ctcompare 3.2 - Code Token Comparator (original) (raw)
The purpose of this set of programs is to allow you to compare several sets of C, Java, Python or Perl code trees on a token basis, rather than on a line by line basis. The programs help to identify similarities between snippets of code in both trees, even if the actual lines are dissimilar.
Downloads & Documentation
Here is:
- The source to ctcompare 3.2, and the README which tells you how to use it.
- Here is a paper and anaudio recording describing ctcompare version 3.x and the token approach. The data used to do the performance analysis in the paper ishere (300Mbytes).
- To verify that ctcompare is working, here are theresults of running
$ ctcompare32Vkernel.ctf Net2kernel.ctf
Sample CTF Files
Here are some sample CTF files of various operating system releases.
Source | Year | CTF File | Source Code |
---|---|---|---|
Unix Nsys kernel | 1973 | nsys.ctf | Available here |
AUSAM kernel | 1979 | Ausam.ctf | Available here |
Unix Version 7 | 1979 | V7.ctf | Available here |
System V R1 (vax) | 1983 | vaxSysVR1.ctf.gz | Not available |
System V R2 (vax) | 1984 | vaxSysVR2.ctf.gz | Not available |
Minix 1.2 | 1988 | minix1.2.ctf | Available here |
BSD Net/2 release | 1991 | net2.ctf.gz | Available here |
4.4BSD-Alpha | 1992 | 4.4BSD-Alpha.ctf.gz | Available here |
Linux 0.96c | 1992 | linux-0.96c.ctf | Available here |
Previous Versions
- You can find the old 3.x and 2.x versions of ctcomparehere, and the old 1.x versionshere.
- Here is a paper describing ctcompare version 2.5.
- Here is a paper and someseminar slides describing ctcompare version 1.3.
Warren Toomey wkt@tuhs.org, December 2011.