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

Method output_memory_addrs

src/ReducerOutputMgr.cpp:907–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907void
908ReducerOutputMgr::output_memory_addrs(const Statement* stm, std::ostream& out, int indent)
909{
910 size_t i;
911 vector<Variable*> all_vars = VariableSelector::find_all_visible_vars(stm->parent);
912 //combine_variable_sets(beffect.get_read_vars(), beffect.get_write_vars(), all_vars);
913 //remove_field_vars(all_vars);
914 output_print_str(out, "begin memory dump \\n", "", indent);
915 outputln(out);
916 for (i=0; i<all_vars.size(); i++) {
917 const Variable* v = all_vars[i];
918 if (reducer->is_var_used(v)) {
919 v->output_addressable_name(out, indent);
920 }
921 }
922 output_print_str(out, "end memory dump \\n", "", indent);
923 outputln(out);
924}
925
926void
927ReducerOutputMgr::output_global_values(string header, std::ostream& out, int indent)

Callers

nothing calls this directly

Calls 5

output_print_strFunction · 0.85
outputlnFunction · 0.85
sizeMethod · 0.80
is_var_usedMethod · 0.80

Tested by

no test coverage detected