summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Test/CBMC/cmake/compute-property.cmake
blob: 3192aa99a8e37df4d1e194e48c8f8c2e46084b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
execute_process(
    COMMAND
        cbmc --show-properties --unwinding-assertions --xml-ui
        ${cbmc_flags} ${cbmc_verbosity} ${goto_binary}
    OUTPUT_FILE ${out_file}
    ERROR_FILE ${out_file}
    RESULT_VARIABLE res
)

if(NOT (${res} EQUAL 0 OR ${res} EQUAL 10))
    message(FATAL_ERROR
        "Unexpected CBMC property return code '${res}' for proof ${proof_name}. Log written to ${out_file}."
    )
endif()