Revision 2d5acbfa91dde2e6d2fff91afa1122f310ee1c9e authored by martoon on 28 August 2023, 23:20:02 UTC, committed by martoon on 29 August 2023, 00:08:26 UTC
Instead of having a `failed` flag, carry stack as enum.

The point is that we can check that enum once, and then carry the inner
`Stack` value around.

Changes:
* Added `FStack` that is a `Option`-like enum wrapping `Stack`.
* `debug_assert` went away.
* Pattern-matching macro had to be expanded to include the failing stack
  too, that's necessary for failing.
* `protected` gets hard to implement, I had to copy-paste code + it
  performs unnecessary check.
1 parent b23eb04
History
File Mode Size
.github
.gitlab
_coverage_output
contrib
devtools
docs
emacs
manifest
michelson_test_scripts
nix
opam
script-inputs
scripts
src
tezt
vendors
.dockerignore -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 369 bytes
.gitignore -rw-r--r-- 2.5 KB
.gitlab-ci.yml -rw-r--r-- 7.6 KB
.npmrc -rw-r--r-- 62 bytes
.ocamlformat -rw-r--r-- 388 bytes
.pylintrc -rw-r--r-- 17.4 KB
CHANGES.rst -rw-r--r-- 2.1 KB
CODEOWNERS -rw-r--r-- 4.7 KB
Dockerfile -rw-r--r-- 4.3 KB
LICENSE -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 17.6 KB
README.md -rw-r--r-- 3.5 KB
build.Dockerfile -rw-r--r-- 2.8 KB
contributing.md -rw-r--r-- 2.2 KB
default.nix -rw-r--r-- 3.4 KB
dune -rw-r--r-- 903 bytes
dune-project -rw-r--r-- 10.8 KB
dune-workspace -rw-r--r-- 509 bytes
kernels.mk -rw-r--r-- 2.3 KB
package-lock.json -rw-r--r-- 1.7 KB
package.json -rw-r--r-- 345 bytes
poetry.lock -rw-r--r-- 35.9 KB
pyproject.toml -rw-r--r-- 1.0 KB
rust-toolchain -rw-r--r-- 7 bytes
shell.nix -rw-r--r-- 2.9 KB

README.md

back to top