GOTO-SYNTHESIZER(1)
π GOTO-SYNTHESIZER π
okay bestie, sit down, hydrate, because we're about to talk about goto-synthesizer from the User Commands section of the manual (yes, section 1, iykyk). she's the one who rolls up to your GOTO binary and is like "not to be dramatic but I'm going to make you a loop contract and then rebuild you" π¦β¨
β¨ NAME β¨
goto-synthesizer β Synthesize and apply loop contracts of goto binaries.
like. she synthesizes. she applies. she does it to goto binaries. that's the whole vibe π
πΈ SYNOPSIS πΈ
goto-synthesizer [-?] [-h] [--help]
show help
goto-synthesizer --version
show version and exit
goto-synthesizer [options] in [out]
perform synthesis and loop-contracts transformation
three whole modes, bestie, pick your fighter π
[-?] [-h] [--help]β show help (the classic "hello what are u")--versionβ show version and exit (the classic "who even are u")[options] in [out]β perform synthesis and loop-contracts transformation (the classic "let's GO")
π DESCRIPTION π
goto-synthesis reads a GOTO binary, performs loop-contracts synthesis and program transformation for the synthesized contracts, and then writes the resulting program as GOTO binary on disk.
fr fr. she reads the binary, she synthesizes the loop contracts, she transforms the program to match those synthesized contracts, and then she writes the whole glow-up back out to disk as a GOTO binary. main character energy, no cap π
π OPTIONS π
-loop-contracts-no-unwindβ do not unwind transformed loops after applying the synthesized loop contracts. like, we're leaving those loops exactly as they are, bestie, no take-backs π₯--dump-loop-contractsβ dump the synthesized loop contracts as JSON. dump it, queen, let it all out π--json-pt fileβ specify the output destination of the loop-contracts JSON.fileis where that JSON is going. tell her where, she'll put it there π«Ά
π Accepts all of cbmc's options plus the following backend options π
yes bestie, ALL of cbmc's options. every single one. plus these backend ones below π
--object-bits nβ number of bits used for object addresses--sat-solver solverβ use specified SAT solver--external-sat-solver cmdβ command to invoke SAT solver process--no-sat-preprocessorβ disable the SAT solver's simplifier--dimacsβ generate CNF in DIMACS format--beautifyβ beautify the counterexample (greedy heuristic)--smt1β use default SMT1 solver (obsolete). obsolete, girlie, you've been warned π--smt2β use default SMT2 solver (Z3)--bitwuzlaβ use Bitwuzla--boolectorβ use Boolector--cprover-smt2β use CPROVER SMT2 solver--cvc3β use CVC3--cvc4β use CVC4--cvc5β use CVC5--mathsatβ use MathSAT--yicesβ use Yices--z3β use Z3--fpaβ use theory of floating-point arithmetic--external-smt2-solver cmdβ Usecmdto invoke the SMT2 solver. Combine with one of the solver choices for solver-specific constraints. π§--refineβ use refinement procedure (experimental). experimental!! she said it herself π--refine-arraysβ use refinement for arrays only--refine-arithmeticβ refinement of arithmetic expressions only--max-node-refinementβ maximum refinement iterations for arithmetic expressions--incremental-smt2-solver cmdβ Use the incremental SMT backend wherecmdis the command to invoke the SMT solver of choice.
Example invocations:
--incremental-smt2-solver 'z3 -smt2 -in' (use the Z3 solver).
--incremental-smt2-solver 'cvc5 --lang=smtlib2.6 --incremental'
(use the CVC5 solver).
Note that:
- The solver name must be in the
"PATH"or be an executable with full path. - The SMT solver should accept incremental SMTlib v2.6 formatted input from the stdin.
- The SMT solver should support the
QF_AUFBVlogic.
ok literally read those three bullets twice bestie, they're the whole assignment β
--outfile filenameβ output formula to given file--dump-smt-formula filenameβ output smt incremental formula to the given file--write-solver-stats-to json-fileβ collect the solver query complexity--arrays-uf-neverβ never turn arrays into uninterpreted functions--arrays-uf-alwaysβ always turn arrays into uninterpreted functions
π User-interface options π
--xml-uiβ use XML-formatted output--json-uiβ use JSON-formatted output--verbosity nβ verbosity level
π¦ ENVIRONMENT π¦
All tools honor the TMPDIR environment variable when generating temporary files and directories.
so if you want your temp files somewhere specific, set TMPDIR and she'll respect it. she's polite like that π
π BUGS π
If you encounter a problem please create an issue at https://github.com/diffblue/cbmc/issues
not me telling you to file a bug report but like. if something's broken, tell the devs, they literally want to know π
π SEE ALSO π
cbmc(1), goto-cc(1) goto-instrument(1)
the whole friend group, honestly π
β COPYRIGHT β
2022, Qinheping Hu
periodt. that's the copyright, we respect it π
and that's the page bestie!! this one's from goto-synthesizer-5.59.0, dated December 2022, and it lives in the GOTO-SYNTHESIZER(1) manual section. go synthesize something iconic πβ¨π
π¦ where this page comes from
- fedora 44: cbmc 6.8.0-1.fc44 Β· BSD-4-Clause
- nixos 26.05: cbmc 6.9.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms