-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref. eng/recordflux/RecordFlux#1362
- Loading branch information
Showing
58 changed files
with
117 additions
and
9,407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
include ../../../Makefile.common | ||
|
||
SPECS = $(wildcard specs/*.rflx) | ||
GENERATED = build/generated/rflx-dccp-packet.ads | ||
BIN = build/obj/dccp_client build/obj/dccp_server | ||
GRAPHS = graphs/DCCP_Option.svg graphs/DCCP_Packet.svg | ||
|
||
.PHONY: test build prove generate clean | ||
|
||
test: | ||
test: $(BIN) | ||
rflx validate --coverage -v tests/samples/valid -- $(SPECS) DCCP::Packet | ||
tests/run | ||
|
||
build: | ||
build: $(BIN) | ||
|
||
prove: | ||
prove: $(GNATPROVE_CACHE_DIR) $(GENERATED) | ||
$(GNATPROVE) -Pdccp | ||
|
||
generate: | ||
generate: $(GENERATED) $(GRAPHS) | ||
|
||
clean: | ||
rm -rf build | ||
|
||
$(GENERATED): $(SPECS) | build/generated | ||
rflx generate -d build/generated $^ | ||
|
||
build/generated: | ||
mkdir -p build/generated | ||
|
||
$(BIN): $(GENERATED) $(wildcard build/generated/*) | ||
gprbuild -Pdccp -Xgnat=$(GNAT) | ||
|
||
$(GRAPHS): $(SPECS) | ||
rflx graph -d graphs $^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
with "../../../defaults"; | ||
|
||
project Build is | ||
|
||
for Languages use ("RecordFlux", "Ada"); | ||
for Source_Dirs use ("src", "build/generated", "specs"); | ||
for Object_Dir use "build/obj"; | ||
for Create_Missing_Dirs use "True"; | ||
for Main use ("dccp_client.adb", "dccp_server.adb"); | ||
|
||
package Builder is | ||
for Default_Switches ("Ada") use Defaults.Builder_Switches; | ||
for Global_Configuration_Pragmas use "common.adc"; | ||
end Builder; | ||
|
||
package Compiler is | ||
for Driver ("RecordFlux") use ""; | ||
for Default_Switches ("Ada") use Defaults.Compiler_Switches; | ||
end Compiler; | ||
|
||
package Binder is | ||
for Default_Switches ("Ada") use Defaults.Binder_Switches; | ||
end Binder; | ||
|
||
package Naming is | ||
for Spec_Suffix ("RecordFlux") use ".rflx"; | ||
end Naming; | ||
|
||
package RecordFlux is | ||
for Output_Dir use "build/generated"; | ||
end RecordFlux; | ||
|
||
package Prove is | ||
for Proof_Switches ("Ada") use Defaults.Proof_Switches & | ||
( | ||
"--prover=z3,cvc5,altergo,colibri" | ||
); | ||
for Proof_Switches ("msg_write.adb") use ("--timeout=300", "--memlimit=5000"); | ||
for Proof_Switches ("rflx-dccp-packet.adb") use ("--timeout=360", "--memlimit=5000"); | ||
for Proof_Switches ("rflx-rflx_arithmetic.adb") use ("--timeout=120"); | ||
end Prove; | ||
|
||
end Build; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
Oops, something went wrong.