12#ifndef MCRL2_BES_PG_PARSE_H
13#define MCRL2_BES_PG_PARSE_H
18#include "mcrl2/core/parser_utility.h"
19#include "mcrl2/pbes/pbes.h"
20#include "mcrl2/pbes/join.h"
32using identifier_t =
unsigned long long;
33using priority_t =
unsigned short;
39 identifier_t
id = 0ULL;
203 template <
typename T>
223 unsigned int start_symbol_index = p.start_symbol_index(
"ParityGame");
224 bool partial_parses =
false;
225 core::parse_node node = p.parse(text, start_symbol_index, partial_parses);
226 pg_actions(p).parse_ParityGame(node, result, maxpg);
237 std::string text = utilities::read_text(from);
238 parse_pgsolver_string(text, result, maxpg);
245 if(filename ==
"-" || filename.empty())
247 parse_pgsolver(std::cin, b, maxpg);
252 f.open(filename.c_str());
255 throw mcrl2::runtime_error(
"cannot open file " + filename +
" for reading");
257 parse_pgsolver(f, b, maxpg);
parameterized boolean equation system
void parse_pgsolver(std::istream &from, pbes &result, bool maxpg=true)
Reads a parity game from an input stream, and stores it as a BES.
void parse_pgsolver_string(const std::string &text, pbes &result, bool maxpg=true)
Reads a parity game from an input stream, and stores it as a BES.
void parse_pgsolver(const std::string &filename, pbes &b, bool maxpg=true)
Parse parity game in PGSolver format from filename, and store the resulting BES in b.
pbes_expression formula(std::set< identifier_t > const &v, const owner_t owner, const std::string &prefix="X")
D_ParserTables parser_tables_pg
bool operator<(node_t const &other)
std::set< identifier_t > successors