#include "scv/scv_shared_ptr.h"#include "scv/scv_constraint_range.h"#include <float.h>Include dependency graph for _scv_randomization.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
Definition at line 731 of file _scv_randomization.h. Referenced by _scv_keep_range(). |
|
|
Definition at line 305 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _SCV_CHECK_DATA() \ if (e->is_integer()) { \ _scv_constraint_range_generator_signed_big *gen = NULL; \ gen = cd->get_signed_big_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, gen, lb, ub) \ } else if (e->is_unsigned()) { \ _scv_constraint_range_generator_unsigned_big *ugen = NULL; \ ugen = cd->get_unsigned_big_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, ugen, lb, ub) \ } \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } \ Definition at line 829 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _SCV_CHECK_DATA() \ _scv_constraint_range_generator_unsigned_big *ugen = NULL; \ ugen = cd->get_unsigned_big_generator(e); \ _SCV_SC_UNSIGNED_VALUE(dummy_values, e->get_bitwidth(), lb, ub) \ _SCV_ONLY_OR_OUT(dummy_values, exclude, ugen, lbv, ubv) \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } \ Definition at line 844 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _SCV_CHECK_DATA() \ if (e->is_integer()) { \ if (e->get_bitwidth() <= 64) { \ _scv_constraint_range_generator_int_ll * gen = \ cd->get_int_ll_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, gen, lb.to_int64(), \ ub.to_int64()) \ } else { \ _scv_message::message(_scv_message::INTERNAL_ERROR, "_scv_keep_range (sc_signed), unsupported bitwidth."); \ } \ } else if (e->is_unsigned()) { \ if (e->get_bitwidth() <= 64) { \ _scv_constraint_range_generator_unsigned_ll * gen = \ cd->get_unsigned_ll_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, gen, lb.to_uint64(), \ ub.to_uint64()) \ } else { \ _scv_message::message(_scv_message::INTERNAL_ERROR, "_scv_keep_range (sc_unsigned), unsupported bitwidth."); \ } \ } \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } \ Definition at line 804 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE(_typename) \ _SCV_CHECK_DATA() \ _scv_constraint_range_generator_unsigned_big *ugen = NULL; \ ugen = cd->get_unsigned_big_generator(e); \ _SCV_SC_UNSIGNED_VALUE(dummy_values, W, lb, ub) \ _SCV_ONLY_OR_OUT(dummy_values, exclude, ugen, lbv, ubv) \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } Definition at line 771 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _scv_message::message(_scv_message::RANDOM_TYPE_NOT_SUPPORTED, #_typename); \ } \ Definition at line 854 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _SCV_CHECK_DATA() \ _scv_constraint_range_generator_double *dgen = NULL; \ dgen = cd->get_double_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, dgen, lb, ub) \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } \ Definition at line 795 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE(_typename) \ _SCV_CHECK_DATA() \ _scv_constraint_range_generator_unsigned_big *ugen = NULL; \ _scv_constraint_range_generator_signed_big *sgen = NULL; \ if (e->is_integer()) { \ sgen = cd->get_signed_big_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, sgen, lb, ub) \ } else if (e->is_unsigned()) { \ ugen = cd->get_unsigned_big_generator(e); \ _SCV_ONLY_OR_OUT(dummy_values, exclude, ugen, lb, ub) \ } \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } Definition at line 751 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_signed_big * gen = \ cd->get_signed_big_generator(e); \ list<sc_signed> tlist; \ _scv_get_sc_list(e->get_bitwidth(), vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1130 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_unsigned_big * gen = \ cd->get_unsigned_big_generator(e); \ list<sc_unsigned> tlist; \ _scv_get_sc_list(e->get_bitwidth(), vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1139 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_int_ll * gen = \ cd->get_int_ll_generator(e); \ list<long long> tlist; \ _scv_get_base_signed_list(vlist, tlist) ; \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1121 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_unsigned_ll * gen = \ cd->get_unsigned_ll_generator(e); \ list<unsigned long long> tlist; \ _scv_get_base_unsigned_list(vlist, tlist) ; \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1112 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_double * gen = \ cd->get_double_generator(e); \ list<double> tlist; \ _scv_get_list(vlist, tlist) ; \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1085 of file _scv_randomization.h. |
|
|
Value: template <> \ inline void _scv_keep_range(scv_extensions_if* e, const list<_typename>& vlist) { \ _SCV_CHECK_DATA() \ Definition at line 1017 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_int_ll * gen = \ cd->get_int_ll_generator(e); \ list<long long> tlist; \ _scv_get_list(vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1040 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_int * gen = \ cd->get_int_generator(e); \ list<int> tlist; \ _scv_get_list(vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1031 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_unsigned * gen = \ cd->get_unsigned_generator(e); \ list<unsigned> tlist; \ _scv_get_logic_list(vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1148 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_SC_HEADER(_typename) \ _scv_constraint_range_generator_int_ll * gen = \ cd->get_int_ll_generator(e); \ list<long long> tlist; \ _scv_get_list_sc(W, vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1049 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_SC_HEADER(_typename) \ _scv_constraint_range_generator_signed_big * gen = \ cd->get_signed_big_generator(e); \ list<sc_signed> tlist; \ _scv_get_sc_list(W, vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1094 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_SC_HEADER(_typename) \ _scv_constraint_range_generator_unsigned_ll * gen = \ cd->get_unsigned_ll_generator(e); \ list<unsigned long long> tlist; \ _scv_get_list_sc(W, vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1076 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_SC_HEADER(_typename) \ _scv_constraint_range_generator_unsigned_big * gen = \ cd->get_unsigned_big_generator(e); \ list<sc_unsigned> tlist; \ _scv_get_sc_list(e->get_bitwidth(), vlist, tlist); \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1103 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_unsigned_ll * gen = \ cd->get_unsigned_ll_generator(e); \ list<unsigned long long> tlist; \ _scv_get_list(vlist, tlist) ; \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1067 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_LIST_HEADER(_typename) \ _scv_constraint_range_generator_unsigned * gen = \ cd->get_unsigned_generator(e); \ list<unsigned> tlist; \ _scv_get_list(vlist, tlist) ; \ _SCV_KEEP_RANGE_SET_LIST(tlist) \ } Definition at line 1058 of file _scv_randomization.h. |
|
|
Value: _SCV_KEEP_RANGE_TYPE_NO_W(_typename) \ _SCV_CHECK_DATA() \ _scv_constraint_range_generator_unsigned *ugen = NULL; \ ugen = cd->get_unsigned_generator(e); \ _SCV_UNSIGNED_VALUE(lb, ub) \ _SCV_ONLY_OR_OUT(dummy_values, exclude, ugen, lbv, ubv) \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ } \ Definition at line 785 of file _scv_randomization.h. |
|
|
Value: template <int W> \ inline void _scv_keep_range(scv_extensions_if* e, const list<_typename<W> >& vlist) { \ _SCV_CHECK_DATA() \ Definition at line 1022 of file _scv_randomization.h. |
|
|
Value: gen->keepOnly(tlist); \ cd->set_mode(_scv_constraint_data::RANGE_CONSTRAINT); \ Definition at line 1027 of file _scv_randomization.h. |
|
|
Value: template <int W> \ inline void _scv_keep_range(scv_extensions_if* e, const _typename<W>& lb, \ const _typename<W>& ub, bool exclude, bool dummy_values = false) { Definition at line 742 of file _scv_randomization.h. |
|
|
Value: inline void _scv_keep_range(scv_extensions_if* e, const _typename& lb, \ const _typename& ub, bool exclude, bool dummy_values = false) { Definition at line 747 of file _scv_randomization.h. |
|
|
Value: if (!dummy_values) { \ if (!exclude) \ gen->keepOnly(lb, ub); \ else \ gen->keepOut(lb, ub); \ } Definition at line 734 of file _scv_randomization.h. Referenced by _scv_keep_range(). |
|
|
Value: sc_unsigned lbv(W), ubv(W); \ if (dummy_values) { lbv = 0; ubv = 0; } \ else { lbv = lb; ubv = ub; } Definition at line 766 of file _scv_randomization.h. |
|
|
Value: unsigned lbv, ubv; \
lbv = (unsigned)lb.to_bool(); ubv = (unsigned)ub.to_bool();Definition at line 781 of file _scv_randomization.h. |
|
|
Value: static bool dummy = create_random(this); \ if (0) cout << dummy << endl; Definition at line 60 of file _scv_randomization.h. Referenced by scv_extension_rand< T[N]>::next(), and scv_extension_rand< T >::next(). |
|
|
Definition at line 101 of file _scv_ext_rand.h. References _scv_extension_rand_enum::get_constraint_data(). |
|
|
Definition at line 111 of file _scv_ext_rand.h. References _scv_extension_rand_enum::get_constraint_data(), and _scv_constraint_data::get_random(). Referenced by _scv_distribution_base< T >::set_mode(). |
|
||||||||||||||||||||
|
Definition at line 3162 of file scv_constraint.cpp. References _scv_constraint_data::get_random(), and _scv_message::message(). Referenced by generate_value_distribution_range(). |
|
|
Definition at line 3157 of file scv_constraint.cpp. |
|
||||||||||||
|
Definition at line 3108 of file scv_constraint.cpp. References assert, and scv_constraint_base::get_members(). Referenced by _scv_use_constraint(). |
|
||||||||||||||||
|
Definition at line 982 of file _scv_randomization.h. |
|
||||||||||||||||
|
Definition at line 975 of file _scv_randomization.h. |
|
||||||||||||||||
|
Definition at line 968 of file _scv_randomization.h. |
|
||||||||||||||||||||
|
Definition at line 989 of file _scv_randomization.h. |
|
||||||||||||||||
|
Definition at line 1006 of file _scv_randomization.h. |
|
||||||||||||||||||||
|
Definition at line 996 of file _scv_randomization.h. |
|
|
|
|
||||||||||||||||
|
Definition at line 1013 of file _scv_randomization.h. References _scv_message::message(). Referenced by _scv_extension_rand_N< T >::get_generator(), scv_enum_base< T >::keep_only(), _scv_extension_rand_N< T >::keep_only(), scv_enum_base< T >::keep_out(), and _scv_extension_rand_N< T >::keep_out(). |
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||
|
Definition at line 935 of file _scv_randomization.h. References _scv_constraint_range_generator_unsigned, and _scv_constraint_data::RANGE_CONSTRAINT. Referenced by scv_enum_base< T >::keep_only(), and scv_enum_base< T >::keep_out(). |
|
|
Definition at line 3151 of file scv_constraint.cpp. References scv_constraint_base::get_copy(). Referenced by _scv_use_constraint(). |
|
||||||||||||||||||||||||
|
Definition at line 706 of file _scv_randomization.h. References _scv_message::message(). Referenced by _scv_keep_range(). |
|
||||||||||||||||
|
Definition at line 3076 of file scv_constraint.cpp. References assert, _scv_constraint_manager::assignRandomValue(), bddNodeT, scv_constraint_manager::getConstraintManagerP(), _scv_constraint_manager::setDoubleValue(), and _scv_constraint_manager::simplifyConstraint(). Referenced by _scv_distribution< T >::generate_value_(), generate_value_extension(), and generate_value_no_constraint(). |
|
||||||||||||
|
Definition at line 3047 of file scv_constraint.cpp. |
|
||||||||||||
|
Definition at line 106 of file _scv_ext_rand.h. References _scv_constraint_data::gen_mode, and _scv_extension_rand_enum::set_value_mode(). Referenced by _scv_distribution_base< T >::set_mode(). |
|
||||||||||||||||||||||||
|
|
Definition at line 64 of file _scv_randomization.h. |
|
||||||||||||||||
|
Definition at line 365 of file _scv_randomization.h. References scv_bag< T >::peekRandom(), and scv_get_const_extensions(). Referenced by _scv_distribution< T >::generate_value_(). |
|
||||||||||||||||
|
Definition at line 514 of file _scv_randomization.h. References _scv_message::message(), and scv_bag< T >::peekRandom(). |
|
||||||||||||||||||||
|
Definition at line 409 of file _scv_randomization.h. References _scv_assign_enum_value(), _scv_constraint_data::get_random(), _scv_message::message(), and scv_get_const_extensions(). Referenced by _scv_distribution< T >::generate_value_(). |
|
||||||||||||||||||||||||
|
Definition at line 542 of file _scv_randomization.h. References _scv_constraint_data::get_random(), and _scv_message::message(). |
|
||||||||||||
|
Definition at line 3349 of file scv_constraint.cpp. References _scv_set_value(), _scv_constraint_data::get_extension(), _scv_constraint_data::get_random(), and _scv_message::message(). Referenced by _scv_distribution< T >::generate_value_(). |
|
||||||||||||
|
Definition at line 3339 of file scv_constraint.cpp. References _scv_set_value(), and generate_value_range_constraint(). Referenced by _scv_distribution< T >::generate_value_(). |
|
||||||||||||
1.2.18