60 InternalAdd(InternalDdManager<DdType::CUDD> const* ddManager, cudd::ADD cuddAdd);
65 InternalAdd(InternalAdd<DdType::CUDD, ValueType> const& other) = default;
66 InternalAdd& operator=(InternalAdd<DdType::CUDD, ValueType> const& other) = default;
67 InternalAdd(InternalAdd<DdType::CUDD, ValueType>&& other) = default;
68 InternalAdd& operator=(InternalAdd<DdType::CUDD, ValueType>&& other) = default;
77 bool operator==(InternalAdd<DdType::CUDD, ValueType> const& other) const;
85 bool operator!=(InternalAdd<DdType::CUDD, ValueType> const& other) const;
93 InternalAdd<DdType::CUDD, ValueType> operator+(InternalAdd<DdType::CUDD, ValueType> const& other) const;
101 InternalAdd<DdType::CUDD, ValueType>& operator+=(InternalAdd<DdType::CUDD, ValueType> const& other);
109 InternalAdd<DdType::CUDD, ValueType> operator*(InternalAdd<DdType::CUDD, ValueType> const& other) const;
117 InternalAdd<DdType::CUDD, ValueType>& operator*=(InternalAdd<DdType::CUDD, ValueType> const& other);
125 InternalAdd<DdType::CUDD, ValueType> operator-(InternalAdd<DdType::CUDD, ValueType> const& other) const;
133 InternalAdd<DdType::CUDD, ValueType>& operator-=(InternalAdd<DdType::CUDD, ValueType> const& other);
141 InternalAdd<DdType::CUDD, ValueType> operator/(InternalAdd<DdType::CUDD, ValueType> const& other) const;
149 InternalAdd<DdType::CUDD, ValueType>& operator/=(InternalAdd<DdType::CUDD, ValueType> const& other);
157 InternalBdd<DdType::CUDD>
equals(InternalAdd<DdType::CUDD, ValueType> const& other) const;
174 InternalBdd<DdType::CUDD>
less(InternalAdd<DdType::CUDD, ValueType> const& other) const;
192 InternalBdd<DdType::CUDD>
greater(InternalAdd<DdType::CUDD, ValueType> const& other) const;
209 InternalAdd<DdType::CUDD, ValueType>
pow(InternalAdd<DdType::CUDD, ValueType> const& other) const;
217 InternalAdd<DdType::CUDD, ValueType>
mod(InternalAdd<DdType::CUDD, ValueType> const& other) const;
226 InternalAdd<DdType::CUDD, ValueType>
logxy(InternalAdd<DdType::CUDD, ValueType> const& other) const;
248 InternalAdd<DdType::CUDD, ValueType>
minimum(InternalAdd<DdType::CUDD, ValueType> const& other) const;
256 InternalAdd<DdType::CUDD, ValueType>
maximum(InternalAdd<DdType::CUDD, ValueType> const& other) const;
263 template<typename TargetValueType>
264 typename std::enable_if<std::is_same<ValueType, TargetValueType>::value, InternalAdd<DdType::CUDD, TargetValueType>>::type
toValueType() const;
265 template<typename TargetValueType>
266 typename std::enable_if<!std::is_same<ValueType, TargetValueType>::value, InternalAdd<DdType::CUDD, TargetValueType>>::type
toValueType() const;
312 bool
equalModuloPrecision(InternalAdd<DdType::CUDD, ValueType> const& other, ValueType const& precision, bool relative = true) const;
323 std::vector<InternalBdd<DdType::CUDD>> const& to) const;
334 std::vector<InternalBdd<DdType::CUDD>> const& to) const;
345 std::vector<InternalBdd<DdType::CUDD>> const& summationDdVariables) const;
356 std::vector<InternalBdd<DdType::CUDD>> const& summationDdVariables) const;
410 InternalAdd<DdType::CUDD, ValueType>
constrain(InternalAdd<DdType::CUDD, ValueType> const& constraint) const;
420 InternalAdd<DdType::CUDD, ValueType>
restrict(InternalAdd<DdType::CUDD, ValueType> const& constraint) const;
435 uint_fast64_t
getNonZeroCount(uint_fast64_t numberOfDdVariables) const;
513 void
exportToDot(std::string const& filename, std::vector<std::string> const& ddVariableNamesAsStrings, bool showVariablesIfPossible = true) const;
532 AddIterator<DdType::CUDD, ValueType>
begin(DdManager<DdType::CUDD> const& fullDdManager, InternalBdd<DdType::CUDD> const& variableCube,
533 uint_fast64_t numberOfDdVariables, std::set<storm::expressions::Variable> const& metaVariables,
534 bool enumerateDontCareMetaVariables = true) const;
542 AddIterator<DdType::CUDD, ValueType>
end(DdManager<DdType::CUDD> const& fullDdManager) const;
554 void
composeWithExplicitVector(Odd const& odd, std::vector<uint_fast64_t> const& ddVariableIndices, std::vector<ValueType>& targetVector,
555 std::function<ValueType(ValueType const&, ValueType const&)> const& function) const;
567 void
forEach(Odd const& odd, std::vector<uint_fast64_t> const& ddVariableIndices,
568 std::function<void(uint64_t const&, ValueType const&)> const& function) const;
581 void
composeWithExplicitVector(Odd const& odd, std::vector<uint_fast64_t> const& ddVariableIndices, std::vector<uint_fast64_t> const& offsets,
582 std::vector<ValueType>& targetVector, std::function<ValueType(ValueType const&, ValueType const&)> const& function) const;
590 std::vector<InternalAdd<DdType::CUDD, ValueType>>
splitIntoGroups(std::vector<uint_fast64_t> const& ddGroupVariableIndices) const;
600 std::vector<uint64_t>
decodeGroupLabels(std::vector<uint_fast64_t> const& ddGroupVariableIndices,
601 storm::storage::BitVector const& ddLabelVariableIndices) const;
612 std::vector<std::pair<InternalAdd<DdType::CUDD, ValueType>, InternalAdd<DdType::CUDD, ValueType>>>
splitIntoGroups(
613 InternalAdd<DdType::CUDD, ValueType> vector, std::vector<uint_fast64_t> const& ddGroupVariableIndices) const;
624 std::vector<std::vector<InternalAdd<DdType::CUDD, ValueType>>>
splitIntoGroups(std::vector<InternalAdd<DdType::CUDD, ValueType>> const& vectors,
625 std::vector<uint_fast64_t> const& ddGroupVariableIndices) const;
640 void
toMatrixComponents(std::vector<uint_fast64_t> const& rowGroupIndices, std::vector<uint_fast64_t>& rowIndications,
641 std::vector<storm::storage::MatrixEntry<uint_fast64_t, ValueType>>& columnsAndValues, Odd const& rowOdd, Odd const& columnOdd,
642 std::vector<uint_fast64_t> const& ddRowVariableIndices, std::vector<uint_fast64_t> const& ddColumnVariableIndices,
643 bool writeValues) const;
653 static
InternalAdd<DdType::CUDD, ValueType>
fromVector(InternalDdManager<DdType::CUDD> const* ddManager, std::vector<ValueType> const& values,
654 storm::dd::Odd const& odd, std::vector<uint_fast64_t> const& ddVariableIndices);
661 Odd createOdd(std::vector<uint_fast64_t> const& ddVariableIndices) const;
665#ifdef STORM_HAVE_CUDD
671 cudd::ADD getCuddAdd() const;
678 DdNode* getCuddDdNode() const;
687#ifdef STORM_HAVE_CUDD
700 void forEachRec(DdNode const* dd, uint_fast64_t currentLevel, uint_fast64_t maxLevel, uint_fast64_t currentOffset, Odd const& odd,
701 std::vector<uint_fast64_t> const& ddVariableIndices, std::function<void(uint64_t const&, ValueType const&)> const& function) const;
713 void splitIntoGroupsRec(DdNode* dd, std::vector<InternalAdd<DdType::CUDD, ValueType>>& groups, std::vector<uint_fast64_t> const& ddGroupVariableIndices,
714 uint_fast64_t currentLevel, uint_fast64_t maxLevel) const;
728 void decodeGroupLabelsRec(DdNode* dd, std::vector<uint64_t>& labels, std::vector<uint_fast64_t> const& ddGroupVariableIndices,
729 storm::storage::BitVector const& ddLabelVariableIndices, uint_fast64_t currentLevel, uint_fast64_t maxLevel,
730 uint64_t label) const;
743 void splitIntoGroupsRec(DdNode* dd1, DdNode* dd2,
744 std::vector<std::pair<InternalAdd<DdType::CUDD, ValueType>, InternalAdd<DdType::CUDD, ValueType>>>& groups,
745 std::vector<uint_fast64_t> const& ddGroupVariableIndices, uint_fast64_t currentLevel, uint_fast64_t maxLevel) const;
757 void splitIntoGroupsRec(std::vector<DdNode*> const& dds, std::vector<std::vector<InternalAdd<DdType::CUDD, ValueType>>>& groups,
758 std::vector<uint_fast64_t> const& ddGroupVariableIndices, uint_fast64_t currentLevel, uint_fast64_t maxLevel) const;
785 void toMatrixComponentsRec(DdNode const* dd, std::vector<uint_fast64_t> const& rowGroupOffsets, std::vector<uint_fast64_t>& rowIndications,
786 std::vector<storm::storage::MatrixEntry<uint_fast64_t, ValueType>>& columnsAndValues, Odd const& rowOdd, Odd const& columnOdd,
787 uint_fast64_t currentRowLevel, uint_fast64_t currentColumnLevel, uint_fast64_t maxLevel, uint_fast64_t currentRowOffset,
788 uint_fast64_t currentColumnOffset, std::vector<uint_fast64_t> const& ddRowVariableIndices,
789 std::vector<uint_fast64_t> const& ddColumnVariableIndices, bool writeValues) const;
803 static DdNode* fromVectorRec(::DdManager* manager, uint_fast64_t& currentOffset, uint_fast64_t currentLevel, uint_fast64_t maxLevel,
804 std::vector<ValueType> const& values, Odd const& odd, std::vector<uint_fast64_t> const& ddVariableIndices);
818 static std::shared_ptr<Odd> createOddRec(DdNode* dd, cudd::Cudd const& manager, uint_fast64_t currentLevel, uint_fast64_t maxLevel,
819 std::vector<uint_fast64_t> const& ddVariableIndices,
820 std::vector<std::unordered_map<DdNode*, std::shared_ptr<Odd>>>& uniqueTableForLevels);