rand Packet queue_of_pkts[$]; lets the solver pick the queue’s size, but it can’t construct the objects: new() is code, and the solver only picks values. The queue comes out the right size and full of null handles.
post_randomize() runs right after randomize() has picked every value, including the queue’s size, so it knows how many objects to build.
Fix the class below.
RequirementsFor post_randomize(), for every element of queue_of_pkts
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.