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

Method write_var

src/Effect.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void
158Effect::write_var(const Variable *v)
159{
160 if (!is_written(v)) {
161 write_vars.push_back(v);
162 }
163 // pure = pure;
164 // TODO: not quite correct below ---
165 // --- but I think we want "side_effect_free" to mean "volatile_free".
166 side_effect_free &= (!v->is_volatile() && !v->is_access_once());
167 // side_effect_free = false;
168}
169
170void
171Effect::write_var_set(const std::vector<const Variable *>& vars)

Callers 3

add_external_effectMethod · 0.95
make_iterationMethod · 0.45

Calls 2

is_access_onceMethod · 0.80
is_volatileMethod · 0.45

Tested by

no test coverage detected