| 46 | } |
| 47 | |
| 48 | void Simulator::storeOriginalQuery( const InputQuery &inputQuery ) |
| 49 | { |
| 50 | _originalQuery = inputQuery; |
| 51 | |
| 52 | for ( const auto &plConstraint : _originalQuery.getPiecewiseLinearConstraints() ) |
| 53 | { |
| 54 | List<unsigned> variables = plConstraint->getParticipatingVariables(); |
| 55 | for ( unsigned variable : variables ) |
| 56 | { |
| 57 | plConstraint->notifyLowerBound( variable, _originalQuery.getLowerBound( variable ) ); |
| 58 | plConstraint->notifyUpperBound( variable, _originalQuery.getUpperBound( variable ) ); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | _originalQuery = *( Preprocessor().preprocess( _originalQuery, false ) ); |
| 63 | |
| 64 | if ( _originalQuery.countInfiniteBounds() != 0 ) |
| 65 | throw MarabouError( MarabouError::SIMULATOR_ERROR, |
| 66 | "Preprocessed query has infinite bounds" ); |
| 67 | |
| 68 | if ( _originalQuery.getNumInputVariables() == 0 ) |
| 69 | throw MarabouError( MarabouError::SIMULATOR_ERROR, |
| 70 | "Preprocessed query has no input variables" ); |
| 71 | } |
| 72 | |
| 73 | void Simulator::runSingleSimulation() |
| 74 | { |
nothing calls this directly
no test coverage detected