Add a random Sygus enumerator. (#7782)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Tue, 14 Dec 2021 22:03:36 +0000 (16:03 -0600)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 22:03:36 +0000 (22:03 +0000)
commitbbbe2f3ebbd7175930054cca12c3e5e32cd0cbd9
tree318e6335515d6ec911e764b60103b3dcfcb5f972
parent9ef7cc3520344901a704bda018cd1783ebc18d06
Add a random Sygus enumerator. (#7782)

This PR adds a Sygus enumerator that generates random terms from a grammar. The size of the terms generated by the enumerator approximates a geometric distribution and can be configured with an option.
src/CMakeLists.txt
src/options/quantifiers_options.toml
src/theory/quantifiers/sygus/enum_value_manager.cpp
src/theory/quantifiers/sygus/sygus_random_enumerator.cpp [new file with mode: 0644]
src/theory/quantifiers/sygus/sygus_random_enumerator.h [new file with mode: 0644]
test/regress/CMakeLists.txt
test/regress/regress1/sygus/rand_const.sy [new file with mode: 0644]
test/regress/regress1/sygus/rand_p_0.sy [new file with mode: 0644]
test/regress/regress1/sygus/rand_p_1.sy [new file with mode: 0644]