MMgr v2.3.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
praet_procurator.h File Reference

Which states and transitions a run actually reached. More...

Go to the source code of this file.

Macros

#define PRAET_OPTIMIZE
 Whether a run records the work it did, on top of the states it reached.
#define PRAET_PROCURATOR
 Whether a run records the states and transitions it reached.
#define praet_procurator_transitus(channel_, was_, now_)
 Expands to nothing where PRAET_PROCURATOR is 0.
#define praet_procurator_report()
 Expands to nothing where PRAET_PROCURATOR is 0.
#define praet_procurator_opus(type_)
 Expands to nothing where PRAET_OPTIMIZE is 0.

Detailed Description

Which states and transitions a run actually reached.

Author
dstroy0 (Douglas Quigg) dquig.nosp@m.g123.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2026-09-01
Note
The examination arm. The correctness arm says every case passed, and that says nothing about which of the machine's states and transitions any case walked through. A four state core with eight statuses has more paths than a suite this size can cover by accident. So the ones it misses are worth a look before any of it reaches a part.
Reports and does not gate. A transition nothing reached is a hole in the cases. Whether it is worth a case is a reading of the report and not a build failure. The optimization arm is this same instrument with timings.
Off unless PRAET_PROCURATOR is 1, and every entry is then a macro that expands to nothing. A build that did not ask for it carries no counter and no call.
Declared here and defined in the suite. The one function that writes a flag word calls these. The counters and the table they print belong to a run of the suite, at test/integration/test_praet_correctness/praet_procurator.c.
Warning
A build with PRAET_PROCURATOR at 1 links against those definitions and fails to link without them. An image for a part has no reason to set it.
Not a knob praet_iudex.h asks about. Every knob there describes the image a caller ships; this describes a run of the suite, the harness's business and not the caller's.

Definition in file praet_procurator.h.