Skip to content

Commit

Permalink
feat(souffle): Move Souffle bindings to souffle.js (#120)
Browse files Browse the repository at this point in the history
The `souffle` module has been redesigned and rewritten in a more generic way. After that, it was moved to its own repository: https://github.com/nowarp/souffle.js.

Closes #3
Closes #75
  • Loading branch information
jubnzv authored Sep 2, 2024
1 parent 0ade14a commit c780374
Show file tree
Hide file tree
Showing 22 changed files with 305 additions and 1,144 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- Allow running Misti without Souffle installation: Issue [#45](https://github.com/nowarp/misti/issues/45)
- `--souffle-binary` CLI option
- `--souffle-binary` CLI option to specify path to the Souffle executable
- `--souffle-verbose` CLI option to include comments to the generated Souffle files: PR [#120](https://github.com/nowarp/misti/pull/120)
- Benchmarks for executing detectors. Use e.g. `yarn benchmark ./test/good/sample-jetton.tact`.
- Public API to handle Tact stdlib paths
- Detector templates and the `--new-detector` CLI option: PR [#105](https://github.com/nowarp/misti/pull/105)
Expand All @@ -18,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Asynchronous detectors and Souffle execution: PR [#118](https://github.com/nowarp/misti/pull/118)

### Changed
- Moved Souffle bindings to a its own repository https://github.com/nowarp/souffle.js: PR [#120](https://github.com/nowarp/misti/pull/120)

### Fixed
- Adjust option names in Config and JSONSchema
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"graphviz",
"idxs",
"unmarshalled",
"unmarshal",
"fixpoints",
"Datalog",
"lvalues",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"misti": "./bin/misti"
},
"dependencies": {
"@nowarp/souffle": "^0.1.2",
"@tact-lang/compiler": "^1.4.4",
"@types/benchmark": "^2.1.5",
"@types/fs-extra": "^11.0.4",
Expand Down
9 changes: 7 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@ export function createMistiCommand(): Command {
)
.option(
"--souffle-binary <path>",
"Path to Soufflé binary. Default value: `souffle`.",
"Path to Soufflé binary. Default: `souffle`.",
undefined,
)
.option(
"--souffle-path <path>",
"Directory to save generated Soufflé files. If not set, a temporary directory will be used.",
"Directory to save generated Soufflé files. If not set, a temporary directory will be used. Default: `/tmp/misti/souffle`",
undefined,
)
.option(
"--souffle-verbose",
"If set, generates more readable Soufflé files instead of making the result source code smaller.",
undefined,
)
.option(
Expand Down
Loading

0 comments on commit c780374

Please sign in to comment.