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

Method write_var

src/CGContext.cpp:346–359  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

344 *
345 */
346void
347CGContext::write_var(const Variable *v)
348{
349 v = v->get_collective();
350 if (is_nonwritable(v)) {
351 assert(!"attempted write to a nonwritable variable");
352 }
353 if (effect_accum) {
354 effect_accum->write_var(v);
355 }
356 // track effect for single statement
357 effect_stm.write_var(v);
358 sanity_check();
359}
360
361/*
362 *

Callers

nothing calls this directly

Calls 1

get_collectiveMethod · 0.45

Tested by

no test coverage detected