Browse Source

Fixed some typos

main
Matthias Volk 8 years ago
parent
commit
6bd8c8f9b5
  1. 2
      src/storm-dft/CMakeLists.txt
  2. 1
      src/storm/analysis/GraphConditions.cpp
  3. 6
      src/storm/analysis/GraphConditions.h

2
src/storm-dft/CMakeLists.txt

@ -8,7 +8,7 @@ file(GLOB_RECURSE STORM_DFT_SOURCES ${PROJECT_SOURCE_DIR}/src/storm-dft/*/*.cpp)
file(GLOB_RECURSE STORM_DFT_HEADERS ${PROJECT_SOURCE_DIR}/src/storm-dft/*/*.h) file(GLOB_RECURSE STORM_DFT_HEADERS ${PROJECT_SOURCE_DIR}/src/storm-dft/*/*.h)
# Create storm-pgcl.
# Create storm-dft.
add_library(storm-dft SHARED ${STORM_DFT_SOURCES} ${STORM_DFT_HEADERS}) add_library(storm-dft SHARED ${STORM_DFT_SOURCES} ${STORM_DFT_HEADERS})
# Remove define symbol for shared libstorm. # Remove define symbol for shared libstorm.

1
src/storm/analysis/GraphConditions.cpp

@ -72,6 +72,7 @@ namespace storm {
wellformedConstraintSet.emplace(carl::FormulaType::ITE, typename ConstraintType<ValueType>::val(transition.getValue().denominator().polynomial(), storm::CompareRelation::GREATER), typename ConstraintType<ValueType>::val(transition.getValue().nominator().polynomial(), storm::CompareRelation::GEQ), typename ConstraintType<ValueType>::val(transition.getValue().nominator().polynomial(), storm::CompareRelation::LEQ)); wellformedConstraintSet.emplace(carl::FormulaType::ITE, typename ConstraintType<ValueType>::val(transition.getValue().denominator().polynomial(), storm::CompareRelation::GREATER), typename ConstraintType<ValueType>::val(transition.getValue().nominator().polynomial(), storm::CompareRelation::GEQ), typename ConstraintType<ValueType>::val(transition.getValue().nominator().polynomial(), storm::CompareRelation::LEQ));
// TODO: Assert: transition <= 1 <==> if denom > 0 then nom - denom <= 0 else nom - denom >= 0 // TODO: Assert: transition <= 1 <==> if denom > 0 then nom - denom <= 0 else nom - denom >= 0
} }
// Assert: transition > 0
graphPreservingConstraintSet.emplace(transition.getValue().nominator().polynomial(), storm::CompareRelation::NEQ); graphPreservingConstraintSet.emplace(transition.getValue().nominator().polynomial(), storm::CompareRelation::NEQ);
} }
} }

6
src/storm/analysis/GraphConditions.h

@ -35,7 +35,7 @@ namespace storm {
void wellformedRequiresNonNegativeEntries(std::vector<ValueType> const&); void wellformedRequiresNonNegativeEntries(std::vector<ValueType> const&);
public: public:
/*! /*!
* Constructs the a constraint collector for the given DTMC. The constraints are built and ready for
* Constructs a constraint collector for the given DTMC. The constraints are built and ready for
* retrieval after the construction. * retrieval after the construction.
* *
* @param dtmc The DTMC for which to create the constraints. * @param dtmc The DTMC for which to create the constraints.
@ -47,14 +47,14 @@ namespace storm {
* *
* @return The set of wellformed-ness constraints. * @return The set of wellformed-ness constraints.
*/ */
std::unordered_set<typename ConstraintType<ValueType>::val> const& getWellformedConstraints() const;
std::unordered_set<typename ConstraintType<ValueType>::val> const& getWellformedConstraints() const;
/*! /*!
* Returns the set of graph-preserving constraints. * Returns the set of graph-preserving constraints.
* *
* @return The set of graph-preserving constraints. * @return The set of graph-preserving constraints.
*/ */
std::unordered_set<typename ConstraintType<ValueType>::val> const& getGraphPreservingConstraints() const;
std::unordered_set<typename ConstraintType<ValueType>::val> const& getGraphPreservingConstraints() const;
/*! /*!
* Constructs the constraints for the given DTMC. * Constructs the constraints for the given DTMC.

Loading…
Cancel
Save