Code Monkey home page Code Monkey logo

Comments (1)

vitorenesduarte avatar vitorenesduarte commented on June 9, 2024

Following the approach in the IBC relayer CLI (https://github.com/informalsystems/ibc-rs/tree/master/relayer-cli), each of the commands above will produce a JSON representing the outcome of the command.

For example, with #24, in the root of this repository we can:

$ cargo install modelator --path modelator/
$ modelator tla generate-tests modelator/tests/integration/tla/NumbersAMaxBMinTest.tla modelator/tests/integration/tla/Numbers.cfg
{
  "status": "success",
  "result": [
    {
      "tla_config_file": "/home/vitor.enes/modelator/modelator/tests/integration/tla/NumbersAMaxBMinTest_AMaxBMinTest.cfg",
      "tla_file": "/home/vitor.enes/modelator/modelator/tests/integration/tla/NumbersAMaxBMinTest_AMaxBMinTest.tla"
    }
  ]
}
$ modelator apalache test modelator/tests/integration/tla/NumbersAMaxBMinTest_AMaxBMinTest.tla modelator/tests/integration/tla/NumbersAMaxBMinTest_AMaxBMinTest.cfg
{
  "status": "success",
  "result": {
    "tla_trace_file": "/home/vitor.enes/modelator/trace.tla"
  }
}
$ modelator tla tla-trace-to-json-trace trace.tla
{
  "status": "success",
  "result": {
    "json_trace_file": "/home/vitor.enes/modelator/trace.json"
  }
}
$ cat trace.json
[
  {
    "a": 0,
    "b": 0
  },
  {
    "a": 1,
    "b": 0
  },
  {
    "a": 2,
    "b": 0
  },
  {
    "a": 3,
    "b": 0
  },
  {
    "a": 4,
    "b": 0
  },
  {
    "a": 5,
    "b": 0
  },
  {
    "a": 6,
    "b": 0
  },
  {
    "a": 7,
    "b": 0
  },
  {
    "a": 8,
    "b": 0
  },
  {
    "a": 9,
    "b": 0
  },
  {
    "a": 10,
    "b": 0
  }
]

from modelator.

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.