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

Function is_variable_in_set

src/Variable.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool is_variable_in_set(const vector<const Variable*>& set, const Variable* v)
121{
122 size_t i;
123 for (i=0; i<set.size(); i++) {
124 if (set[i] == v) {
125 return true;
126 }
127 }
128 return false;
129}
130
131bool add_variable_to_set(vector<const Variable*>& set, const Variable* v)
132{

Callers 12

is_var_usedMethod · 0.85
have_overlapping_fieldsFunction · 0.85
read_pointedMethod · 0.85
write_pointedMethod · 0.85
find_must_use_arraysMethod · 0.85
joinMethod · 0.85
join_visitsMethod · 0.85
is_assertableMethod · 0.85
add_variable_to_setFunction · 0.85
equal_variable_setsFunction · 0.85
sub_variable_setsFunction · 0.85
choose_varMethod · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected