inside constraints from scratch, three different set shapesinside takes a set in braces, and the set can take three shapes:
a list of values -- x inside {1, 2, 3}
a range mixed with values -- x inside {[10:20], 255}
a range with variable ends -- x inside {[lo:hi]}Fix the class below.
RequirementsOn every randomize() call
mode is exactly one of 0, 2, 4 or 8.address is between 10 and 20 inclusive, or exactly 255.val is between low_bound and high_bound inclusive, using those two variables, not the numbers they currently hold.One working answer: brokenbench's own fix for this exercise. Try a few runs first.
What changes, against the code you started with:
docker run --pull always --rm -p 127.0.0.1:8787:8787 ghcr.io/adibis/brokenbench-runnerLooking for a runner on this computer…
The first start downloads about 250 MB; after that it starts in seconds and only downloads again when there's an update. Your code goes to the runner on your computer, not to chipdv.io.