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

Method output_array_init

src/CoverageTestExtension.cpp:69–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void
70CoverageTestExtension::output_array_init(std::ostream &out, int count)
71{
72 if (inputs_size_ == 1) {
73 test_values_[count]->Output(out);
74 return;
75 }
76 int len = 0;
77 int last_index = inputs_size_ + count - 1;
78 for (int i = count; i < last_index; ++i) {
79 if ((len % 10) == 0) {
80 out << std::endl;
81 out << AbsExtension::tab_ << AbsExtension::tab_;
82 }
83 test_values_[i]->Output(out);
84 out << ", ";
85 len++;
86 }
87 if ((len % 10) == 0) {
88 out << std::endl;
89 out << AbsExtension::tab_ << AbsExtension::tab_;
90 }
91 test_values_[last_index]->Output(out);
92}
93
94void
95CoverageTestExtension::output_decls(std::ostream &out)

Callers

nothing calls this directly

Calls 1

OutputMethod · 0.45

Tested by

no test coverage detected