* Upgrade hevm to latest `echidna-patches` commit
* Upgrade build to GHC 9.6
* Refactor terminal and signal support in preparation for Windows UI
* Enable UI on all platforms
* Use pkgsStatic for Linux
pkgsMusl fails to build for some reason.
* Remove conditional UI compilation
All platforms now support the Echidna UI
* Enable UI on ConHost as well
See the introduction on https://hackage.haskell.org/package/ansi-terminal-1.1.1/docs/System-Console-ANSI.html
* Enable `eager-blackholing`
Observed a ~2% speedup on longer runs when compiling both hevm and
echidna with this flag. Besides, the Haskell documentation encourages
enabling it for parallel code:
https://downloads.haskell.org/~ghc/9.6.5/docs/users_guide/using-concurrent.html#compile-time-options-for-smp-parallelism
* Resolve hlint warnings
* Update Linux Stack CI to 9.6
* Fix compilation failure after merge
* Upgrade hevm to `echidna-patches-20240725`
* Fix lint warnings, unused imports
* flake: align nixpkgs with hevm
* flake: fix libiconv for x86_64 darwin
> app/utf8-troubleshoot/cbits/locale.c:10:10: error:
> fatal error: 'libcharset.h' file not found
> |
> 10 | #include <libcharset.h>
> | ^
> #include <libcharset.h>
> ^~~~~~~~~~~~~~
Also link iconv dynamically on Darwin as well
* switch to tstore branch on hevm fork. all we should need now is a call to clearTStorages
* call clearTStorages after each transaction
* test case
* bump hevm
* bump hevm again
---------
Co-authored-by: Sam Alws <sam.alws@trailofbits.com>
* Add symbolic execution
Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
Co-authored-by: Sam Alws <sam.alws@trailofbits.com>
* Add support for concolic execution
---------
Co-authored-by: Artur Cygan <artur.cygan@trailofbits.com>
Co-authored-by: Ben Siraphob <bensiraphob@gmail.com>
* Update to GHC 9.4
* ci: Update to GHC 9.4
* ci: fix GHC 9.4 support on Windows
GHC 9.4 has changed toolchains to Clang, which causes issues when building
with our current setup. We perform the following changes to support
GHC 9.4 and later:
* Use MSYS2 CLANG64 MSYS. See https://gitlab.haskell.org/ghc/ghc/-/issues/22561
* Use MSYS2 minimal $PATH. There's many things in the default GitHub
environment that cause conflicts. To achieve this, we have to also
manually re-add the Stack, Cabal and GHC paths.
* Bump the Stack resolver. GHC 9.4.7 has some compilation fixes that
are good to have around.
* Replace the GHC linker with our MSYS2 linker. The GHC linker is old
(~LLVM 14?) and does not fully understand the static libraries
produced by the newer Clang 17 in MSYS2.
* Refactor the way we invoke Stack and take advantage of the Stack
config to indicate extra library and include paths.
* Drop the 'strip' workaround for the test suite, as it is not needed
any longer.
* Fix the linking of the standard C++ library. GHC 9.4 introduces a
nice way to do it in a platform-independent way, but unfortunately
it does not work properly in Nix and it attempts to link clang++
instead of libc++.so, so we have to use some trickery.
addDLL: stdc++ or dependencies not loaded. (Win32 error 126)
See also:
* https://gitlab.haskell.org/ghc/ghc/-/issues/22738
* https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.4?version_id=b60e52482a666d25638d59cd7e86851ddf971dc1#link-against-system-cxx-std-lib-instead-of-stdc
* hevm: pin to newer version supporting GHC 9.4
* ci: linux: update to GHC 9.4.7
* ci: do not cache Stack config
---------
Co-authored-by: Emilio López <emilio.lopez@trailofbits.com>
* hevm-0.41.x
* Buffer.hs
* fix some non-exhaustive patterns
* actually implement viewBuffer lol
* disable gas price usage until hevm fixes its issue
* upgrade to hevm-0.42 and fix tests
* fixed test + default value
* fixed test + default value
* upgrade to sbv 8.8
Co-authored-by: ggrieco-tob <gustavo.grieco@trailofbits.com>