mCRL2 icon indicating copy to clipboard operation
mCRL2 copied to clipboard

Printing and parsing of a property map are not inverse operations

Open tneele opened this issue 6 years ago • 0 comments

In mcrl2/data/detail/data_property_map, there are functions for printing and parsing properties. One would expect that these operations are eachother's inverse. However, when printing a set that contains an element with a comma, this is not the case. See the following example.

parse_set_string(print(std::set<>({"X(n,m:Nat)","Y"})))

leads to something like {"X(n","m:Nat)","Y"}.

I ran into this problem when making some changes to the pbesconstelm algorithm and running the librarytest_mcrl2_pbes_constelm_test test.

tneele avatar Aug 21 '18 10:08 tneele