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

Method goGenerator

src/DFSProgramGenerator.cpp:83–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void
84DFSProgramGenerator::goGenerator()
85{
86 DFSRndNumGenerator *impl =
87 dynamic_cast<DFSRndNumGenerator*>(RandomNumber::GetRndNumGenerator());
88 //unsigned long long count = 0;
89 GenerateAllTypes();
90 output_mgr_->OutputStructUnions(cout);
91 while(!impl->get_all_done()) {
92 Error::set_error(SUCCESS);
93 GenerateFunctions();
94 if (Error::get_error() == SUCCESS) {
95 //count++;
96 //if (count >= 47376)
97 //cout << "here" << std::endl;
98 output_mgr_->OutputHeader(argc_, argv_, seed_);
99 output_mgr_->Output();
100 OutputMgr::really_outputln(cout);
101 good_count_++;
102 }
103 impl->reset_state();
104 Function::doFinalization();
105 VariableSelector::doFinalization();
106 reset_gensym();
107 PartialExpander::restore_init_values();
108 //cout << "count = " << count << std::endl;
109 }
110}
111

Callers 1

mainFunction · 0.45

Calls 9

GenerateAllTypesFunction · 0.85
GenerateFunctionsFunction · 0.85
really_outputlnFunction · 0.85
reset_gensymFunction · 0.85
get_all_doneMethod · 0.80
reset_stateMethod · 0.80
OutputStructUnionsMethod · 0.45
OutputHeaderMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected