https://github.com/squareslab/cobold
COBOLd: Gobblin’ Up COBOL Bugs for Fun and Profit
https://github.com/squareslab/cobold
Last synced: 7 months ago
JSON representation
COBOLd: Gobblin’ Up COBOL Bugs for Fun and Profit
- Host: GitHub
- URL: https://github.com/squareslab/cobold
- Owner: squaresLab
- Created: 2018-03-29T14:14:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T13:13:27.000Z (almost 8 years ago)
- Last Synced: 2025-04-26T07:41:30.124Z (9 months ago)
- Language: C
- Size: 13.7 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# COBOLd
Fix your COBOL programs automatically with the power of genetic programming.
# Demo
- Install a COBOL compiler:
`sudo apt-get install open-cobol`
- Install [GenProg](https://github.com/squaresLab/genprog-code)
- Clone this repository:
```
git clone https://github.com/squaresLab/COBOLd.git
```
- Compile `limit.c` in the `src` directory, naming the binary `limit`
```
cd COBOLd/src
gcc -o limit limit.c
```
- Then `cd` to the bug you'd like to repair and run GenProg using the
configuration file included with the bug:
```
cd COBOLd/code/zunebug
/path/to/genprog-code/src/repair configuration
```
It may take a few runs (the search is stochastic, after all!), but if GenProg
finds a repair it will report `repair found`, and output the repaired version of
the program to a `repair` subdirectory.
# Cite us:
```
@article{squareslab2018cobol,
title={COBOLd: Gobblin' Up COBOL Bugs for Fun and Profit},
author={Timperley, Chris and Katz, Deby and Coker, Zack, and van Tonder, Rijnard and Soto, Mauricio and Afzal, Afsoon and Lacomis, Jeremy and {Le Goues}, Claire and Brady, Adam},
journal={A Record of The Proceedings of SIGBOVIK 2018},
pages={138--142},
year={2018}
}
```