├── .gitignore ├── .gitmodules ├── GeneratedInvariants.xlsx ├── LICENSE.txt ├── README.md ├── config ├── README.md ├── arrays.yaml ├── loop_invariants.yaml ├── recursive_functions.yaml ├── sample_config.yaml └── termination.yaml ├── dataset.zip ├── experiments ├── README.md ├── arrays.txt ├── loop_invariants.txt ├── recursive_functions.txt └── termination.txt ├── logs └── README.md ├── src ├── Dockerfile ├── benchmark.py ├── boogie.py ├── build_parser.py ├── checker.py ├── frama_c.py ├── llm.py ├── llm_api_client.py ├── llm_utils.py ├── loopy.py ├── loopy_factory.py ├── loopy_llm.py ├── main.py └── requirements.txt └── templates ├── array_prompt_with_nudges.txt ├── array_system_message.txt ├── csv_format_healing_prompt.txt ├── csv_format_healing_system_message.txt ├── healing_prompt.txt ├── healing_system_message.txt ├── m1_prepost_prompt.txt ├── m1_prepost_system.txt ├── plain.txt ├── prepost_prompt.txt ├── prepost_system.txt ├── simplified_prompt.txt ├── simplified_prompt_arrays.txt ├── simplified_prompt_with_nudges.txt ├── simplified_system_message.txt ├── svcomp_prompt.txt ├── svcomp_system_message.txt ├── termination_baseline_prompt.txt ├── termination_baseline_system.txt ├── termination_invariants_prompt.txt ├── termination_invariants_system.txt ├── termination_lexico_prompt.txt ├── termination_lexico_system.txt ├── termination_mphase_prompt.txt ├── termination_mphase_system.txt ├── termination_variants_prompt.txt └── termination_variants_system.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/.gitmodules -------------------------------------------------------------------------------- /GeneratedInvariants.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/GeneratedInvariants.xlsx -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/README.md -------------------------------------------------------------------------------- /config/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/README.md -------------------------------------------------------------------------------- /config/arrays.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/arrays.yaml -------------------------------------------------------------------------------- /config/loop_invariants.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/loop_invariants.yaml -------------------------------------------------------------------------------- /config/recursive_functions.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/recursive_functions.yaml -------------------------------------------------------------------------------- /config/sample_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/sample_config.yaml -------------------------------------------------------------------------------- /config/termination.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/config/termination.yaml -------------------------------------------------------------------------------- /dataset.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/dataset.zip -------------------------------------------------------------------------------- /experiments/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/experiments/README.md -------------------------------------------------------------------------------- /experiments/arrays.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/experiments/arrays.txt -------------------------------------------------------------------------------- /experiments/loop_invariants.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/experiments/loop_invariants.txt -------------------------------------------------------------------------------- /experiments/recursive_functions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/experiments/recursive_functions.txt -------------------------------------------------------------------------------- /experiments/termination.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/experiments/termination.txt -------------------------------------------------------------------------------- /logs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/logs/README.md -------------------------------------------------------------------------------- /src/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/Dockerfile -------------------------------------------------------------------------------- /src/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/benchmark.py -------------------------------------------------------------------------------- /src/boogie.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/boogie.py -------------------------------------------------------------------------------- /src/build_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/build_parser.py -------------------------------------------------------------------------------- /src/checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/checker.py -------------------------------------------------------------------------------- /src/frama_c.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/frama_c.py -------------------------------------------------------------------------------- /src/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/llm.py -------------------------------------------------------------------------------- /src/llm_api_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/llm_api_client.py -------------------------------------------------------------------------------- /src/llm_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/llm_utils.py -------------------------------------------------------------------------------- /src/loopy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/loopy.py -------------------------------------------------------------------------------- /src/loopy_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/loopy_factory.py -------------------------------------------------------------------------------- /src/loopy_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/loopy_llm.py -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/main.py -------------------------------------------------------------------------------- /src/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/src/requirements.txt -------------------------------------------------------------------------------- /templates/array_prompt_with_nudges.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/array_prompt_with_nudges.txt -------------------------------------------------------------------------------- /templates/array_system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/array_system_message.txt -------------------------------------------------------------------------------- /templates/csv_format_healing_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/csv_format_healing_prompt.txt -------------------------------------------------------------------------------- /templates/csv_format_healing_system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/csv_format_healing_system_message.txt -------------------------------------------------------------------------------- /templates/healing_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/healing_prompt.txt -------------------------------------------------------------------------------- /templates/healing_system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/healing_system_message.txt -------------------------------------------------------------------------------- /templates/m1_prepost_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/m1_prepost_prompt.txt -------------------------------------------------------------------------------- /templates/m1_prepost_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/m1_prepost_system.txt -------------------------------------------------------------------------------- /templates/plain.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/plain.txt -------------------------------------------------------------------------------- /templates/prepost_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/prepost_prompt.txt -------------------------------------------------------------------------------- /templates/prepost_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/prepost_system.txt -------------------------------------------------------------------------------- /templates/simplified_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/simplified_prompt.txt -------------------------------------------------------------------------------- /templates/simplified_prompt_arrays.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/simplified_prompt_arrays.txt -------------------------------------------------------------------------------- /templates/simplified_prompt_with_nudges.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/simplified_prompt_with_nudges.txt -------------------------------------------------------------------------------- /templates/simplified_system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/simplified_system_message.txt -------------------------------------------------------------------------------- /templates/svcomp_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/svcomp_prompt.txt -------------------------------------------------------------------------------- /templates/svcomp_system_message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/svcomp_system_message.txt -------------------------------------------------------------------------------- /templates/termination_baseline_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_baseline_prompt.txt -------------------------------------------------------------------------------- /templates/termination_baseline_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_baseline_system.txt -------------------------------------------------------------------------------- /templates/termination_invariants_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_invariants_prompt.txt -------------------------------------------------------------------------------- /templates/termination_invariants_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_invariants_system.txt -------------------------------------------------------------------------------- /templates/termination_lexico_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_lexico_prompt.txt -------------------------------------------------------------------------------- /templates/termination_lexico_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_lexico_system.txt -------------------------------------------------------------------------------- /templates/termination_mphase_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_mphase_prompt.txt -------------------------------------------------------------------------------- /templates/termination_mphase_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_mphase_system.txt -------------------------------------------------------------------------------- /templates/termination_variants_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_variants_prompt.txt -------------------------------------------------------------------------------- /templates/termination_variants_system.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/loop-invariant-gen-experiments/HEAD/templates/termination_variants_system.txt --------------------------------------------------------------------------------