A library and then an executable that uses that library.
Create a folder called foo:
| -- *************************************************** | |
| -- 6.820 - Program Analysis - Fall 2019 | |
| -- PROBLEM SET 1 | |
| -- *************************************************** | |
| -- --------------------------------------------------- | |
| -- Problem 1 |
| Require Import String. | |
| (* Examples by Adam Chlipala *) | |
| (** * Warm-up: natural numbers *) | |
| Inductive nat := O | S (n : nat). | |
| Fixpoint plus (n m : nat) : nat := | |
| match n with | |
| | O => m | |
| | S n' => S (plus n' m) |
| (** MAKEFILE: | |
| build = _build | |
| exe = main.native | |
| all: clean build | |
| clean: | |
| rm -rf $(exe) | |
| rm -rf $(build) |
General:
| Module SigmaTry. | |
| Inductive D : Type := | |
| | a | |
| | b | |
| | c. | |
| Definition P (x : D) : Prop := |
| (* | |
| MAKEFILE | |
| plugin = primus_set_mem | |
| all: clean build install | |
| build: | |
| bapbuild -pkg bap-primus -tags 'warn(A)' $(plugin).plugin |
| (* | |
| MAKEFILE: | |
| plugin = primus_set_regs | |
| all: clean build install | |
| build: | |
| bapbuild -pkg bap-primus -tags 'warn(A)' $(plugin).plugin |
| (* | |
| plugin = primus_set_register_example | |
| all: clean build install | |
| build: | |
| bapbuild -pkg bap-primus -tags 'warn(A)' $(plugin).plugin | |
| install: |