Commit graph

10 commits

Author SHA1 Message Date
Alexandre Duret-Lutz
3cbd681c6d [lbtt]
Fix generation of random formulae on 64bits systems.

* src/main.cc (testLoop): Generate random short ints between 0 and
SHRT_MAX, not between 0 and LONG_MAX.  On systems where long ints
are 64bits, LRAND(0,LONG_MAX) was returning a value with the lower
32 bits set to 0, and the latter truncation to short int always
yielded the value 0.  Consequently all generated formulae were
identical...
2009-11-26 15:51:01 +01:00
Alexandre Duret-Lutz
6c2bdf4512 Update to LBTT 1.2.1 2008-04-10 10:20:40 +02:00
Alexandre Duret-Lutz
ab1a2ae5d7 * src/main.cc: Include <climits> for LONG_MAX. lbtt won't
compile with g++-4.3 otherwise.
* src/Ltl-parse.yy (matchCharactersFromStream): Declare the chars
as const to kill a g++ warning.
* src/NeverClaim-parse.yy (yyerror): Declare the error
message as const to kill a g++ warning.
2008-03-14 16:59:40 +01:00
Alexandre Duret-Lutz
91df6cab77 fix status of lbtt's subtree. Apparently it was messed up during the cvsimport 2008-02-25 14:30:09 +01:00
Alexandre Duret-Lutz
4741dc02bf * lbtt/: Merge lbtt 1.0.3. 2004-02-16 12:09:29 +00:00
Alexandre Duret-Lutz
7c1ac7bb67 * src/Alloc.h: Rename as ...
* src/ObstackAlloc.h: ... this.  The problem is that alloc.h is a
system header in g++ < 3.0, and Darwin has a case-insensitive
filesystem.  System headers that include alloc.h pick the local
Alloc.h version.
* BuchiAutomaton.h, Configuration.h, DispUtil.cc,
ExternalTranslator.h, FormulaRandomizer.h, Graph.h.in,
LtlFormula.h, Makefile.am, NeverClaimAutomaton.h, PathEvaluator.h,
ProductAutomaton.h, SccIterator.h, SharedTestData.h,
StatDisplay.h, StateSpace.h, StateSpaceRandomizer.cc,
StringUtil.h, TestOperations.h, TestRoundInfo.h, TestStatistics.h,
UserCommandReader.h, UserCommands.h, main.cc: Adjust includes.
2004-01-16 13:30:42 +00:00
Alexandre Duret-Lutz
48c03b89b8 * src/TestOperations.cc (generateBuchiAutomaton): Forward SIGINT
and SIGQUIT.
* src/ExternalTranslator.cc (ExternalTranslator::translate): Likewise.
* src/main.cc (main): Do not intercept SIGINT in
non-interactive runs.
2003-07-29 13:06:53 +00:00
Alexandre Duret-Lutz
ae5d2f9b09 update copyright year 2003-07-29 11:55:37 +00:00
Alexandre Duret-Lutz
71b7da1437 I want $? = 1 whenever some test fails.
* src/main.cc (testLoop): Return 1 iff an error occured.
(main): Use testLoop's output as exit status.
2003-07-09 15:34:53 +00:00
Alexandre Duret-Lutz
ababb9ff93 Initial revision 2002-10-01 14:21:01 +00:00