Browse Source

fixing issue in jani-to-prism label replacement

main
dehnert 7 years ago
parent
commit
b73f0ef94e
  1. 4
      src/storm/logic/LabelSubstitutionVisitor.cpp

4
src/storm/logic/LabelSubstitutionVisitor.cpp

@ -24,14 +24,14 @@ namespace storm {
if (it != labelToExpressionMapping->end()) { if (it != labelToExpressionMapping->end()) {
return std::static_pointer_cast<Formula>(std::make_shared<AtomicExpressionFormula>(it->second)); return std::static_pointer_cast<Formula>(std::make_shared<AtomicExpressionFormula>(it->second));
} else { } else {
return f.asSharedPointer();
return std::static_pointer_cast<Formula>(std::make_shared<AtomicLabelFormula>(f.getLabel()));
} }
} else { } else {
auto it = labelToLabelMapping->find(f.getLabel()); auto it = labelToLabelMapping->find(f.getLabel());
if (it != labelToLabelMapping->end()) { if (it != labelToLabelMapping->end()) {
return std::static_pointer_cast<Formula>(std::make_shared<AtomicLabelFormula>(it->second)); return std::static_pointer_cast<Formula>(std::make_shared<AtomicLabelFormula>(it->second));
} else { } else {
return f.asSharedPointer();
return std::static_pointer_cast<Formula>(std::make_shared<AtomicLabelFormula>(f.getLabel()));
} }
} }
} }

Loading…
Cancel
Save