Skip to main content

Test generation for Solidity in Foundry format (https://github.com/foundry-rs/foundry).

Project description

This work builds upon the original implementation of solTg by Konstantin Britikov.

Follow instructions in README_original.md to install dependencies.

Modified tgnonlin and solc

Precompiled binaries for linux are present in the ./deps folder, replace them with binaries compiled from soltgbackend repo if necessary.

forge-std

forge install foundry-rs/forge-std --no-commit

To install forge-std.

python

Once all dependencies are installed, run:

pip install .

This should install any python dependencies.

When I tried to run the tool on my linux system I got a version error for numpy.

pip install "numpy<2"

Fixed this error for me.

How to run

Run the tool using the following command

`python3 ./solTg/RunAll.py -i <input file/dir>` -t <timeout in seconds>

The contract to be analysed must not be an abstract contract and its code must contain an assert in order for SolCMC to generate its CHC encoding. SolTG will notify the user if the encoding fails to generate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soltg_plus-0.1.2.tar.gz (7.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solTg_plus-0.1.2-py3-none-any.whl (7.8 MB view details)

Uploaded Python 3

File details

Details for the file soltg_plus-0.1.2.tar.gz.

File metadata

  • Download URL: soltg_plus-0.1.2.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for soltg_plus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 049c5ac65f28059978935a55a246a8bdb5656971407e47ab98f335ebf6143d8c
MD5 84b718a83588f10fe6dbdf5063638ccb
BLAKE2b-256 922ec4a443aea6521817f8b231a59a998107dd6b5c687456e0a07549b861739d

See more details on using hashes here.

File details

Details for the file solTg_plus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: solTg_plus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for solTg_plus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8418255a29cb87e936ddbb4f10e0a5a92979d616a48e73463dea61021e60619
MD5 d041a906164895f5c68549588069f2ee
BLAKE2b-256 837d83468c7c548eb7a7901f259e514686c90b96491e3197893df9fa26df805b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page