Skip to content

Commit

Permalink
update to use boolean kw, fix build script issues
Browse files Browse the repository at this point in the history
  • Loading branch information
septract committed Aug 17, 2024
1 parent 35d5871 commit fbabb38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SRC_EXAMPLES=$(shell find src/examples -type f)
SOLUTIONS=$(patsubst src/examples/%, build/solutions/%, $(SRC_EXAMPLES))
EXERCISES=$(patsubst src/examples/%, build/exercises/%, $(SRC_EXAMPLES))

CN=cn verify
CN="cn verify"

exercises: $(EXERCISES) $(SOLUTIONS)

Expand Down Expand Up @@ -47,15 +47,15 @@ build/exercises.zip: $(EXERCISES)
##############################################################################
# Check that the examples all run correctly

CN_PATH ?= cn
CN_PATH?="cn verify"

check-archive:
@echo Check archive examples
@$(MAKEFILE_DIR)/src/example-archive/check-all.sh "$(CN_PATH)"
@$(MAKEFILE_DIR)/src/example-archive/check-all.sh $(CN_PATH)

check-tutorial:
@echo Check tutorial examples
@$(MAKEFILE_DIR)/check.sh "$(CN_PATH)"
@$(MAKEFILE_DIR)/check.sh $(CN_PATH)

check: check-tutorial check-archive

Expand Down
4 changes: 2 additions & 2 deletions src/example-archive/check-all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# #!/usr/bin/env bash

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

Expand All @@ -7,7 +7,7 @@ then
echo "check-all.sh: using CN=$1 in $PWD"
CN="$1"
else
CN=cn verify
CN="cn verify"
fi

subdirs=(
Expand Down
2 changes: 1 addition & 1 deletion src/example-archive/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ then
echo "check.sh: using CN=$1 in $PWD"
CN="$1"
else
CN=cn verify
CN="cn verify"
fi

process_files() {
Expand Down
2 changes: 1 addition & 1 deletion src/example-archive/open-sut/working/mps_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef uint8_t w2;
typedef uint8_t w8;

/*@
function (bool) P_Coincidence_2_4(bool a, bool b, bool c, bool d) {
function (boolean) P_Coincidence_2_4(boolean a, boolean b, boolean c, boolean d) {
(a&&b) || ((a||b) && (c||d)) || (c&&d)
}
Expand Down

0 comments on commit fbabb38

Please sign in to comment.