예제 #1
0
파일: Tasks.cpp 프로젝트: vonwenm/Minisatid
void addModelToSolution(const std::shared_ptr<Model>& model, const Remapper& remapper, ModelManager& solution, Printer& printer) {
	auto outmodel = new Model();
	outmodel->literalinterpretations = getBackMappedModel(model->literalinterpretations, remapper);
	outmodel->variableassignments = getBackMappedModel(model->variableassignments, remapper);
	solution.addModel(outmodel);
	printer.addModel(outmodel);

}
예제 #2
0
	void addModelToSolution(const std::shared_ptr<Model>& model, const Remapper& remapper, ModelManager& solution, Printer& printer) {
		auto outmodel = createModel(model, remapper);
		solution.addModel(outmodel);
		printer.addModel(outmodel);
	}