mCRL2 icon indicating copy to clipboard operation
mCRL2 copied to clipboard

ltsconvert cannot transform/parse probabilistic .aut files

Open jgroote opened this issue 2 years ago • 1 comments

Consider:

des(0, 2, 2)
(0,"a(0)",0 1/2 1)
(1,"a(0)",1 1/2 0)

Apply

ltsconvert prob.aut prob.fsm

The response is:

[error]   Expect a closing bracket at the end of the transition at line 2.

Oddly enough ltsinfo does work correctly on this file, and seems to be able to parse it.

jgroote avatar Sep 28 '22 09:09 jgroote

It also does not work for LTS's. When doing ltsconvert test.lts test.aut after creating test.lts from

act a;

proc P = a.dist b:Bool[1/2].(b -> P <> Q);
     Q = a.dist b:Bool[1/2].(b -> Q <> P);

init P;

the usual way, it says

[error]   Attempting to read a probabilistic LTS as a regular LTS.
[error]   Fail to correctly read an lts from the file test.lts.

Valo13 avatar Sep 28 '22 09:09 Valo13

The above mentioned commit should resolve this problem as well as it can be done now.

jgroote avatar Feb 03 '23 11:02 jgroote