Browse Source

Fixed call to terminal(type, valPtr)

Former-commit-id: dde588ba14
tempestpy_adaptions
PBerger 8 years ago
parent
commit
a8fa45b89c
  1. 4
      src/storage/dd/sylvan/InternalSylvanAdd.cpp
  2. 12
      src/storage/dd/sylvan/InternalSylvanDdManager.cpp

4
src/storage/dd/sylvan/InternalSylvanAdd.cpp

@ -605,7 +605,9 @@ namespace storm {
MTBDD InternalAdd<DdType::Sylvan, ValueType>::getLeaf(storm::RationalFunction const& value) { MTBDD InternalAdd<DdType::Sylvan, ValueType>::getLeaf(storm::RationalFunction const& value) {
storm_rational_function_ptr_struct helperStruct; storm_rational_function_ptr_struct helperStruct;
helperStruct.storm_rational_function = static_cast<void*>(&value); helperStruct.storm_rational_function = static_cast<void*>(&value);
return sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), helperStruct);
uint64_t terminalValue = (uint64_t)&helperStruct;
return sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), terminalValue);
} }
template<typename ValueType> template<typename ValueType>

12
src/storage/dd/sylvan/InternalSylvanDdManager.cpp

@ -86,7 +86,9 @@ namespace storm {
storm::RationalFunction rationalFunction = storm::utility::one<storm::RationalFunction>(); storm::RationalFunction rationalFunction = storm::utility::one<storm::RationalFunction>();
storm_rational_function_ptr_struct helperStruct; storm_rational_function_ptr_struct helperStruct;
helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction); helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction);
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), helperStruct));
uint64_t value = (uint64_t)&helperStruct;
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), value));
} }
#endif #endif
@ -110,7 +112,9 @@ namespace storm {
storm::RationalFunction rationalFunction = storm::utility::zero<storm::RationalFunction>(); storm::RationalFunction rationalFunction = storm::utility::zero<storm::RationalFunction>();
storm_rational_function_ptr_struct helperStruct; storm_rational_function_ptr_struct helperStruct;
helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction); helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction);
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), helperStruct));
uint64_t value = (uint64_t)&helperStruct;
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), value));
} }
#endif #endif
@ -130,7 +134,9 @@ namespace storm {
storm::RationalFunction rationalFunction = value; storm::RationalFunction rationalFunction = value;
storm_rational_function_ptr_struct helperStruct; storm_rational_function_ptr_struct helperStruct;
helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction); helperStruct.storm_rational_function = static_cast<void*>(&rationalFunction);
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), helperStruct));
uint64_t terminalValue = (uint64_t)&helperStruct;
return InternalAdd<DdType::Sylvan, storm::RationalFunction>(this, sylvan::Mtbdd::terminal(sylvan_storm_rational_function_get_type(), terminalValue));
} }
#endif #endif

Loading…
Cancel
Save