cex: provide the user with a means to change the timeout

Reported by Frank Heckenbach.
https://lists.gnu.org/r/bug-bison/2022-07/msg00011.html

* bootstrap.conf: Use c_strtod, so that even in French locales "1.5"
is accepted, instead of "1,5".
* src/counterexample.c, src/state-item.c: Use xtime_t instead of
time_t, so that accuracy goes from seconds to nanoseconds.
( counterexample_init): Depend on cex.timeout rather than
$TIME_LIMIT.
* doc/bison.texi (%define Summary): Document cex.timeout.
This commit is contained in:
Akim Demaille
2022-09-13 08:25:59 +02:00
parent 15b97a0a6a
commit c025891547
9 changed files with 48 additions and 18 deletions

4
NEWS
View File

@@ -8,6 +8,10 @@ GNU Bison NEWS
The C++ skeletons now expose copy and move operators for symbols.
The `cex.timeout` %define variable allows to control when we give up
finding a unifying counterexample. For instance `bison -Wcex
-Dcex.timeout=.5 gram.y` to limit to 1/2s.
* Noteworthy changes in release 3.8.2 (2021-09-25) [stable]
Fixed portability issues of bison on Cygwin.