MCPcopy Create free account
hub / github.com/csmith-project/csmith / InitParamProbabilityTable

Method InitParamProbabilityTable

src/Expression.cpp:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void
85Expression::InitParamProbabilityTable()
86{
87 paramTable_.add_entry((int)eFunction, 40);
88 paramTable_.add_entry((int)eVariable, 40);
89 // constant parameters lead to non-interesting code
90 paramTable_.add_entry((int)eConstant, 0);
91 if (CGOptions::use_embedded_assigns()) {
92 paramTable_.add_entry((int)eAssignment, 10);
93 }
94 if (CGOptions::use_comma_exprs()) {
95 paramTable_.add_entry((int)eCommaExpr, 10);
96 }
97}
98
99void
100Expression::InitProbabilityTables()

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected