mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-11 22:25:14 -05:00
Added script to start the verifast command line tool.
This commit is contained in:
parent
2395267e6a
commit
7ec3eabb71
2 changed files with 45 additions and 3 deletions
45
Test/VeriFast/tasks/vTaskSwitchContext/start-verifast.sh
Executable file
45
Test/VeriFast/tasks/vTaskSwitchContext/start-verifast.sh
Executable file
|
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Relative or absolute path to the directory this script and `paths.sh` reside in.
|
||||||
|
PREFIX=`dirname $0`
|
||||||
|
# Absolute path to the base of this repository.
|
||||||
|
REPO_BASE_DIR="$1"
|
||||||
|
# Absolute path the VeriFast installation directory
|
||||||
|
VF_DIR="$2"
|
||||||
|
|
||||||
|
# Load functions used to compute paths.
|
||||||
|
. "$PREFIX/paths.sh"
|
||||||
|
|
||||||
|
|
||||||
|
VF_PROOF_BASE_DIR=`vf_proof_base_dir $REPO_BASE_DIR`
|
||||||
|
|
||||||
|
|
||||||
|
PP_SCRIPT_DIR=`pp_script_dir $REPO_BASE_DIR`
|
||||||
|
#PP_SCRIPT="`pp_script_dir $REPO_BASE_DIR`/prepare_file_for_VeriFast.sh"
|
||||||
|
PREP="$PP_SCRIPT_DIR/prepare_file_for_VeriFast.sh"
|
||||||
|
TASK_C=`vf_annotated_tasks_c $REPO_BASE_DIR`
|
||||||
|
PP_TASK_C=`pp_vf_tasks_c $REPO_BASE_DIR`
|
||||||
|
|
||||||
|
PROOF_SETUP_DIR=`vf_proof_setup_dir $REPO_BASE_DIR`
|
||||||
|
PROOF_FILES_DIR=`vf_proof_dir $REPO_BASE_DIR`
|
||||||
|
|
||||||
|
PP_ERR_LOG="`pp_log_dir $REPO_BASE_DIR`/preprocessing_errors.txt"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"$PREP" "$TASK_C" "$PP_TASK_C" "$PP_ERR_LOG" \
|
||||||
|
"$REPO_BASE_DIR" "$VF_PROOF_BASE_DIR" "$VF_DIR"
|
||||||
|
|
||||||
|
# Remarks:
|
||||||
|
# - Recently, provenance checks have been added to VF that break old proofs
|
||||||
|
# involving pointer comparisons. The flag `-assume_no_provenance` turns them
|
||||||
|
# off.
|
||||||
|
|
||||||
|
"$VF_DIR/bin/verifast" \
|
||||||
|
-I $PROOF_SETUP_DIR \
|
||||||
|
-I $PROOF_FILES_DIR \
|
||||||
|
-assume_no_provenance \
|
||||||
|
-disable_overflow_check \
|
||||||
|
-allow_dead_code \
|
||||||
|
-c \
|
||||||
|
"$PP_TASK_C" \
|
||||||
|
|
@ -35,9 +35,6 @@ fi
|
||||||
"$PREP" "$TASK_C" "$PP_TASK_C" "$PP_ERR_LOG" \
|
"$PREP" "$TASK_C" "$PP_TASK_C" "$PP_ERR_LOG" \
|
||||||
"$REPO_BASE_DIR" "$VF_PROOF_BASE_DIR" "$VF_DIR"
|
"$REPO_BASE_DIR" "$VF_PROOF_BASE_DIR" "$VF_DIR"
|
||||||
|
|
||||||
echo Load file into VF
|
|
||||||
echo "$PP_TASK_C"
|
|
||||||
|
|
||||||
# Remarks:
|
# Remarks:
|
||||||
# - Recently, provenance checks have been added to VF that break old proofs
|
# - Recently, provenance checks have been added to VF that break old proofs
|
||||||
# involving pointer comparisons. The flag `-assume_no_provenance` turns them
|
# involving pointer comparisons. The flag `-assume_no_provenance` turns them
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue