Code Monkey home page Code Monkey logo

Comments (3)

tneele avatar tneele commented on July 19, 2024

The expected behaviour you describe is indeed how most tools behave. I think that an exception was made for lps2lts because in some cases it is desirable to only use one of the other features of lps2lts (counting states, finding deadlocks etc.) and not output anything (because this can be expensive, in time or disk space). Of course this design decision can be changed, I think @jgroote's opinion is relevant.

from mcrl2.

Kevinjil avatar Kevinjil commented on July 19, 2024

The tool description notes a default output:

$ lps2lts -h
Usage: lps2lts [OPTION]... [INFILE [OUTFILE]]
Transforms the LPS in INFILE and writes a corresponding LTS  to OUTFILE. If 
OUTFILE is not present, stdout is used. If INFILE is not  present, stdin is 
used.

from mcrl2.

Kevinjil avatar Kevinjil commented on July 19, 2024

Thank you for the input @tneele.

After discussion with @jgroote, we concluded that by default there should be no LTS output to stdout. Only if the output format is specified, the default output should be stdout.

A documentation update and a fix is needed for some output formats:

$ echo "act a; proc P = a . P; init P;" | mcrl22lps | lps2lts -olts                                   
[error]   Fail to open file  for writing.
$ echo "act a; proc P = a . P; init P;" | mcrl22lps | lps2lts -oaut
[error]   cannot open '' for writing
$ echo "act a; proc P = a . P; init P;" | mcrl22lps | lps2lts -ofsm
---
---
1 1 "a"
$ echo "act a; proc P = a . P; init P;" | mcrl22lps | lps2lts -odot
cannot open DOT file '' for writing.

from mcrl2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.