Run from the workspace root (/Volumes/ZGMF-X20A/GARYU):
./clindaws/clindaws-cli <path-to-config.json> [flags]Example:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode multi-shot --output-dir /tmp/clindaws-runThe CLI supports 3 runtime modes:
single-shotsingle-shot-sliding-windowmulti-shot
Meaning:
single-shot: one-shot solve over a full grounding fortime(1..max_length)single-shot-sliding-window: single-shot horizon traversal fromsolution_length.mintosolution_length.max, stopping once the configured workflow limit is metmulti-shot: APE-style incremental grounding and solving
Backend note:
--optimizedis currently supported only formulti-shotmulti-shot --optimizedswitches to the compressed-candidate backend underencodings/multi_shot_compressed_candidatesingle-shot --optimizedis not implemented yetsingle-shot-sliding-window --optimizedis not implemented yet--ground-onlydoes not supportsingle-shot-sliding-window
All runtime ASP encodings are vendored under clindaws/encodings.
Normal run:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode multi-shot --output-dir /tmp/clindaws-runSingle-shot:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode single-shot --solutions 1 --no-graphs --output-dir /tmp/clindaws-singleSliding-window single-shot:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode single-shot-sliding-window --solutions 1 --no-graphs --output-dir /tmp/clindaws-single-windowPlain multi-shot:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode multi-shot --solutions 1 --no-graphs --output-dir /tmp/clindaws-multiGrounding only:
./clindaws/clindaws-cli ironAPE/APE_Example/biotools/config.json --mode multi-shot --ground-only --ground-only-stage full --output-dir /tmp/clindaws-groundTranslation only:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode single-shot --translate-only --output-dir /tmp/clindaws-translateTranslation only with compressed-candidate optimization:
./clindaws/clindaws-cli ironAPE/APE_Example/defect_concentration/config.json --mode multi-shot --optimized --translate-only --output-dir /tmp/clindaws-translate-optOptimized multi-shot:
./clindaws/clindaws-cli ironAPE/APE_Example/biotools/config.json --mode multi-shot --optimized --output-dir /tmp/clindaws-multi-optParallel translation expansion (8 workers):
./clindaws/clindaws-cli ironAPE/APE_Example/biotools/config.json --mode multi-shot --optimized --translation-workers 8 --output-dir /tmp/clindaws-multi-opt-parEach run writes artifacts into --output-dir or the directory derived from the config.
Important files:
translation.lptranslation_summary.jsongrounding_summary.jsonfor--ground-onlyworkflow_signatures__<config>__<mode>__<opt|noopt>[__parallel_<mode>].jsonfor normal solve runsanswer_sets__...txtonly when--write-raw-answer-setsis enabledasp_run_log.csvasp_run_summary.csv
The CSV logs are written to the output directory for each run (same as --output-dir).
asp_run_log.csv is append-only and records runtime information per completed stage or horizon, including:
modesolver_familysolver_approachtranslation_buildertranslation_schema- timing columns
- peak RSS memory columns
workflow_candidates_found- satisfiability / stored-workflow counts
asp_run_summary.csv is append-only and contains one row per completed invocation with total:
- translation time
- base grounding time
- total grounding time
- total solving time
- total rendering time
- total runtime
- final solution count
If a run is interrupted, asp_run_log.csv still contains all stages that were completed before the interruption.
Current count basis:
workflowsin CLI summaries are canonical workflow candidates stored by the solverraw_modelsare optional diagnostic counts over pre-canonical clingo answer setssolutionscaps stored canonical workflows; forsingle-shotthis cap is enforced after workflow canonicalization rather than as a raw clingo answer-set limit- the
workflow_signatures__...jsonartifact is the primary machine-readable result artifact for parity and benchmarking
--mode single-shot|single-shot-sliding-window|multi-shot--grounding python|hybrid|clingo— grounding strategy (defaulthybrid)--output-dir ...--solutions N--min-length N--max-length N--parallel-mode ...— clingo solve parallel mode, e.g.8,compete--project/--no-project— enable/disable clingo model projection during solving--no-graphs--graph-format png|dot|svg--optimized— enable the optimized backend; formulti-shotthis selects the compressed-candidate translation/encoding path--translation-workers N— worker processes for optimized compressed-candidate translation (default 1, sequential)--ground-only--ground-only-stage base|full--translate-only--write-raw-answer-sets— emit raw witness-level answer sets for debugging--debug— print diagnostic raw-model and workflow-candidate counters during solving--benchmark-repetitions N— repeat the grounding benchmark N times--summary-top-tools N— include top N expanded tools in translation/grounding summaries