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

Method Output

src/ExpressionVariable.cpp:205–229  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

203 *
204 */
205void
206ExpressionVariable::Output(std::ostream &out) const
207{
208 output_cast(out);
209 Reducer* reducer = CGOptions::get_reducer();
210 if (reducer && reducer->output_expr(this, out)) {
211 return;
212 }
213 int i;
214 int indirect_level = get_indirect_level();
215 if (indirect_level > 0) {
216 out << "(";
217 for (i=0; i<indirect_level; i++) {
218 out << "*";
219 }
220 }
221 else if (indirect_level < 0) {
222 assert(indirect_level == -1);
223 out << "&";
224 }
225 var.Output(out);
226 if (indirect_level > 0) {
227 out << ")";
228 }
229}
230
231std::vector<const ExpressionVariable*>
232ExpressionVariable::get_dereferenced_ptrs(void) const

Callers

nothing calls this directly

Calls 1

output_exprMethod · 0.80

Tested by

no test coverage detected