50 inline const std::string&
73 return rand(
opt.fixprob) == 0;
96 for (
int i=0; i<x.
size()-1; i++)
98 return "[" + s +
str(x[x.
size()-1]) +
"]";
int size(void) const
Return size of array (number of elements).
Passing integer arguments.
Base class for all tests to be run
Gecode::Support::RandomGenerator _rand
Random number generator.
Base(std::string s)
Create and register test with name s.
static Base * tests(void)
Return all tests.
bool fixpoint(void)
Throw a coin whether to compute a fixpoint.
Base * next(void) const
Return next test.
const std::string & name(void) const
Return name of test.
static std::string str(bool b)
Map bool to string.
std::vector< std::pair< MatchType, const char * > > testpat
Patterns to test against.
bool log
Whether to log the tests.
unsigned int seed
The random seed to be used.
const char * start_from
Name of first test to start with.
Options(void)
Initialize options with defaults.
static const unsigned int deffixprob
Default fixpoint probability.
bool list
Whether to list all tests.
unsigned int iter
Number of iterations for each test.
bool stop
Whether to stop on an error.
unsigned int threads
Number of threads to use.
unsigned int fixprob
The probability for computing a fixpoint.
static const int defiter
Default number of iterations.
LinearCongruentialGenerator< 2147483647, 48271, 44488, 3399 > RandomGenerator
Default values for linear congruential generator.