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

Method GenerateValues

src/CoverageTestExtension.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void
57CoverageTestExtension::GenerateValues()
58{
59 vector<ExtensionValue *>::iterator i;
60 for (i = values_.begin(); i != values_.end(); ++i) {
61 const Type *type = (*i)->get_type();
62 for (int j = 0; j < inputs_size_; ++j) {
63 Constant *c = Constant::make_random(type);
64 test_values_.push_back(c);
65 }
66 }
67}
68
69void
70CoverageTestExtension::output_array_init(std::ostream &out, int count)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
get_typeMethod · 0.45

Tested by

no test coverage detected