File tree Expand file tree Collapse file tree 6 files changed +3
-24
lines changed Expand file tree Collapse file tree 6 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111
111
- name : Install Packages
112
112
run : |
113
113
sed -i -e "s|mirrorlist=|#mirrorlist=|g" -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-Linux-*
114
- yum -y install make gcc-c++ flex bison git rpmdevtools wget zlib-devel
114
+ yum -y install make gcc-c++ flex bison git rpmdevtools wget
115
115
wget --no-verbose https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3-linux-x86_64.tar.xz
116
116
tar xJf ccache-4.8.3-linux-x86_64.tar.xz
117
117
cp ccache-4.8.3-linux-x86_64/ccache /usr/bin/
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ For full information see [cprover.org](http://www.cprover.org/ebmc/).
15
15
Compiling
16
16
=========
17
17
18
- - Install a package that provides ` zlib.h ` ; e.g., on Debian/Ubuntu, do `sudo apt-get install
19
- zlib1g-dev`
20
18
- initialize and update the CBMC submodule: ` $> git submodule init; git submodule update `
21
19
- download minisat: ` $> make -C lib/cbmc/src minisat2-download `
22
20
- build EBMC: ` $> make -C src ` (this also builds the CBMC submodule)
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ set(MINISAT_SOVERSION ${MINISAT_SOMAJOR})
26
26
#--------------------------------------------------------------------------------------------------
27
27
# Dependencies:
28
28
29
- find_package (ZLIB )
30
- include_directories (${ZLIB_INCLUDE_DIR} )
31
- include_directories (${minisat_SOURCE_DIR} )
32
-
33
29
#--------------------------------------------------------------------------------------------------
34
30
# Compile flags:
35
31
@@ -47,9 +43,6 @@ set(MINISAT_LIB_SOURCES
47
43
add_library (minisat-lib-static STATIC ${MINISAT_LIB_SOURCES} )
48
44
add_library (minisat-lib-shared SHARED ${MINISAT_LIB_SOURCES} )
49
45
50
- target_link_libraries (minisat-lib-shared ${ZLIB_LIBRARY} )
51
- target_link_libraries (minisat-lib-static ${ZLIB_LIBRARY} )
52
-
53
46
add_executable (minisat_core minisat/core/Main.cc )
54
47
add_executable (minisat_simp minisat/simp/Main.cc )
55
48
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
19
19
**************************************************************************************************/
20
20
21
21
#include < errno.h>
22
- #include < zlib.h>
23
22
24
23
#include " minisat/utils/System.h"
25
24
#include " minisat/utils/ParseUtils.h"
@@ -84,7 +83,6 @@ int main(int argc, char** argv)
84
83
if (argc == 1 )
85
84
printf (" Reading from standard input... Use '--help' for help.\n " );
86
85
87
- gzFile in = (argc == 1 ) ? gzdopen (0 , " rb" ) : gzopen (argv[1 ], " rb" );
88
86
if (in == NULL )
89
87
printf (" ERROR! Could not open file: %s\n " , argc == 1 ? " <stdin>" : argv[1 ]), exit (1 );
90
88
@@ -93,7 +91,6 @@ int main(int argc, char** argv)
93
91
printf (" | |\n " ); }
94
92
95
93
parse_DIMACS (in, S, (bool )strictp);
96
- gzclose (in);
97
94
FILE* res = (argc >= 3 ) ? fopen (argv[2 ], " wb" ) : NULL ;
98
95
99
96
if (S.verbosity > 0 ){
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
19
19
**************************************************************************************************/
20
20
21
21
#include < errno.h>
22
- #include < zlib.h>
23
22
24
23
#include " minisat/utils/System.h"
25
24
#include " minisat/utils/ParseUtils.h"
@@ -88,7 +87,6 @@ int main(int argc, char** argv)
88
87
if (argc == 1 )
89
88
printf (" Reading from standard input... Use '--help' for help.\n " );
90
89
91
- gzFile in = (argc == 1 ) ? gzdopen (0 , " rb" ) : gzopen (argv[1 ], " rb" );
92
90
if (in == NULL )
93
91
printf (" ERROR! Could not open file: %s\n " , argc == 1 ? " <stdin>" : argv[1 ]), exit (1 );
94
92
@@ -97,7 +95,6 @@ int main(int argc, char** argv)
97
95
printf (" | |\n " ); }
98
96
99
97
parse_DIMACS (in, S, (bool )strictp);
100
- gzclose (in);
101
98
FILE* res = (argc >= 3 ) ? fopen (argv[2 ], " wb" ) : NULL ;
102
99
103
100
if (S.verbosity > 0 ){
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
24
24
#include < stdlib.h>
25
25
#include < stdio.h>
26
26
27
- #include < zlib.h>
28
-
29
27
#include " minisat/mtl/XAlloc.h"
30
28
31
29
namespace IctMinisat {
@@ -36,7 +34,6 @@ namespace IctMinisat {
36
34
37
35
38
36
class StreamBuffer {
39
- gzFile in;
40
37
unsigned char * buf;
41
38
int pos;
42
39
int size;
@@ -46,13 +43,10 @@ class StreamBuffer {
46
43
void assureLookahead () {
47
44
if (pos >= size) {
48
45
pos = 0 ;
49
- size = gzread (in, buf, buffer_size); } }
46
+ }
47
+ }
50
48
51
49
public:
52
- explicit StreamBuffer (gzFile i) : in(i), pos(0 ), size(0 ){
53
- buf = (unsigned char *)xrealloc (NULL , buffer_size);
54
- assureLookahead ();
55
- }
56
50
~StreamBuffer () { free (buf); }
57
51
58
52
int operator * () const { return (pos >= size) ? EOF : buf[pos]; }
You can’t perform that action at this time.
0 commit comments