diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-04-08 20:49:11 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-04-08 20:49:11 +0000 |
commit | c3a6ff8c6e4a0c743cd33eb29931f837eeb2959e (patch) | |
tree | df8d8a97baebea55aaf94cc816974a86475c3a4b /test/unit/expr/node_black.h | |
parent | de2b6c4ee9c2ecad88bddd0a60f10e94d6f8c71f (diff) |
A handful of build system fixes:
* (test/unit/Makefile.am) libtool was being passed relative paths of
sources in .cpp, confusing lcov if -b wasn't given. Fixed.
Closes bug #102.
* (configure.ac) --enable-coverage now implies --enable-static
--enable-static-binary --disable-shared.
* (configure.ac) Create top-level config.status for informational and
re-configuration purposes.
* (configure.ac) Remove -fvisibility=hidden for debug builds.
Closes bug #104.
* (test/unit/Makefile.am) Build unit tests with -Wall.
* (various unit tests) Fixed trivially-fixable warnings in building
unit tests. (Signedness in comparison, unused variables, etc.)
* (Makefile.builds.in) Copy the binary correctly if it is static.
(It was failing, but only with --enable-static --enable-shared
--enable-static-binary.) Closes bug #103.
* (src/parser/Makefile.am) libcvc4parser.so now links with libcvc4.so.
* Other minor cleanups to the build system.
Diffstat (limited to 'test/unit/expr/node_black.h')
-rw-r--r-- | test/unit/expr/node_black.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/expr/node_black.h b/test/unit/expr/node_black.h index 17657683d..23d1daf4e 100644 --- a/test/unit/expr/node_black.h +++ b/test/unit/expr/node_black.h @@ -423,10 +423,10 @@ public: #endif /* CVC4_ASSERTIONS */ } - void testNaryExpForSize(Kind k, int N) { + void testNaryExpForSize(Kind k, unsigned N) { NodeBuilder<> nbz(k); Node trueNode = d_nodeManager->mkConst(true); - for(int i = 0; i < N; ++i) { + for(unsigned i = 0; i < N; ++i) { nbz << trueNode; } Node result = nbz; @@ -452,7 +452,7 @@ public: srand(0); int trials = 500; for(int i = 0; i < trials; ++i) { - int N = rand() % 1000 + 2; + unsigned N = rand() % 1000 + 2; testNaryExpForSize(AND, N); } |