Browse Source

fixed getting the function identifier

tempestpy_adaptions
TimQu 6 years ago
parent
commit
487f370c58
  1. 2
      src/storm/storage/jani/JSONExporter.cpp
  2. 2
      src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp

2
src/storm/storage/jani/JSONExporter.cpp

@ -731,7 +731,7 @@ namespace storm {
boost::any ExpressionToJson::visit(storm::expressions::FunctionCallExpression const& expression, boost::any const& data) {
modernjson::json opDecl;
opDecl["op"] = "call";
opDecl["function"] = expression.getIdentifier();
opDecl["function"] = expression.getFunctionIdentifier();
std::vector<modernjson::json> arguments;
for (uint64_t i = 0; i < expression.getNumberOfArguments(); ++i) {
arguments.push_back(boost::any_cast<modernjson::json>(expression.getArgument(i)->accept(*this, data)));

2
src/storm/storage/jani/traverser/FunctionCallExpressionFinder.cpp

@ -85,7 +85,7 @@ namespace storm {
virtual boost::any visit(storm::expressions::FunctionCallExpression const& expression, boost::any const& data) override {
auto& set = *boost::any_cast<std::unordered_set<std::string>*>(data);
set.insert(expression.getIdentifier());
set.insert(expression.getFunctionIdentifier());
for (uint64_t i = 0; i < expression.getNumberOfArguments(); ++i) {
expression.getArgument(i)->accept(*this, data);
}

Loading…
Cancel
Save