MOBICAL(1)
π MOBICAL(1) π
okay bestie, so this is mobical, aka the Model Based Tester for CaDiCaL β¨ she lives in the User Commands section of your manual, and she is literally the girl who finds bugs by vibing with random traces until something breaks. main character energy fr fr π
πΈ NAME πΈ
mobical β Model Based Tester for CaDiCaL π
β¨ DESCRIPTION β¨
so basically, the usage is:
usage: mobical [ <option> ... ] [ <mode> ]
where <option> can be one of the following π«Ά
--help|-hβ print this command line option summary and dip out, no cap--versionβ print CaDiCaL's three character version and exit--buildβ print build configuration-v|--verboseβ increase verbosity, she's a yapper now-q|--quietβ be quiet (only print failing and reduced traces)--colorsβ force colors for both<stdout>and<stderr>--no-colorsβ disable colors if<stderr>is connected to terminal--no-terminalβ assume<stderr>is not connected to terminal--no-seedsβ do not print seeds in random mode-<n>β specify the number of solving phases explicitly--time <seconds>β set time limit per trace (none=0, default=10) β°--space <MB>β set space limit (none=0, default=1024) π§--bad-allocβ generate failing memory allocations, monitor for crashes π--leak-allocβ generate failing memory allocations, monitor for leaks π°--do-not-ignore-resource-limitsβ consider out-of-time or memory as error--tinyβ generate tiny formulas only--smallβ generate small formulas only--mediumβ generate medium sized formulas only--bigβ generate big formulas only
π¦ and then <mode> is one of these π¦
<seed>β generate and execute trace for given 64-bit seed π±<seed> <output>β generate trace, shrink and write it to file<input> <output>β read trace, shrink and write it to output file<input>β read and replay the specified input trace
in order to let the test execute <r> runs (starting from <seed>) use:
-L[ ]<r>
-L[ ]<r>β execute<r>runs π
the output trace is not shrunken if it is not failing. however, before it is written it is executed, unless --do-not-execute is specified:
--do-not-executeβ just write to<output>without execution π
in order to check memory issues or collect coverage you can force execution within the main process, which however also means that the model based tester aborts as soon a test fails π so like, be aware bestie:
--do-not-forkβ execute all tests in main process directly
in order to replay a trace which violates an API contract use:
--do-not-enforce-contracts
to read from <stdin> use - as <input> and also - instead of <output> to write to <stdout> π«
as the library is compiled with logging support (-DLOGGING) one can force to add the set log 1 call to the trace with:
--log|-lβ force low-level logging for detailed debugging π
implicitly add dump and stats calls to traces:
--dump|-dβ force dumping the CNF before everysolve--stats|-sβ force printing statistics after everysolve
implicitly add configure plain after setting options:
--plain|-p
otherwise, if no <mode> is specified, the default is to generate random traces internally until the execution of a trace fails, which means it produces a non-zero exit code. then the trace is rerun and shrunken through delta-debugging to produce a smaller trace. the shrunken failing trace is written as red-<seed>.trace to the current working directory π©Έ (not me, that's literally the filename).
π options that disable parts of the shrinking algorithm π
the following options disable certain parts of the shrinking algorithm:
--do-not-shrink[-at-all]--do-not-add-options[-before-shrinking]--do-not-shrink-phases--do-not-shrink-clauses--do-not-shrink-literals--do-not-shrink-basic[-calls]--do-not-disable[-options]--do-not-reduce[[-option]-values]--do-not-shrink-variables--do-not-shrink-options
π§ the standard mode π§
the standard mode of using the model based tester is to start it in random testing mode without <input>, <seed> nor <output> option. if a failing trace is found it will be shrunken and the resulting trace written to the current working directory. then the model based tester can be interrupted and then called again with the produced failing trace as single argument β¨
this second invocation will execute the trace within the same process and thus can directly be investigated with a symbolic debugger such as gdb or maybe first checked for memory issues with valgrind or recompilation with memory checking -fsanitize=address π₯
okay that's the whole vibe check, bestie. go forth and shrink traces π
mobical 2.2.1 π April 2026 β that's the version and date, love u, bye π«Άπβ¨
π¦ where this page comes from
- fedora 44: cadical 1:2.2.1-4.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms