|
|
@ -1,11 +1,13 @@
|
|
1
|
1
|
/*
|
|
2
|
|
* Terrible code for reading CNF formulas in DIMAC format.
|
|
|
2
|
* Reads a CNF formula in DIMAC format on stdin, parses it and prints
|
|
|
3
|
* the result.
|
|
3
|
4
|
*
|
|
4
|
|
* Don't read this, it's horrible. Although I'm hoping to clean it up
|
|
5
|
|
* at some point, I'm not sure when (if ever) that will be.
|
|
|
5
|
* Many things (support for comments, empty lines and sane code in
|
|
|
6
|
* general) are still missing.
|
|
6
|
7
|
*
|
|
7
|
|
* You have been warned...
|
|
|
8
|
* You have been warned ...
|
|
8
|
9
|
*/
|
|
|
10
|
|
|
9
|
11
|
extern crate solve;
|
|
10
|
12
|
|
|
11
|
13
|
use std::io;
|