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

Method InitExprProbabilityTable

src/Expression.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68DistributionTable Expression::paramTable_;
69
70void
71Expression::InitExprProbabilityTable()
72{
73 exprTable_.add_entry((int)eFunction, 70);
74 exprTable_.add_entry((int)eVariable, 20);
75 exprTable_.add_entry((int)eConstant, 10);
76 if (CGOptions::use_embedded_assigns()) {
77 exprTable_.add_entry((int)eAssignment, 10);
78 }
79 if (CGOptions::use_comma_exprs()) {
80 exprTable_.add_entry((int)eCommaExpr, 10);
81 }
82}
83
84void
85Expression::InitParamProbabilityTable()

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected