[英]User Error: Prover 'alt-ergo' not found in why3.conf
我正在嘗試使用 Frama-c 測試一個函數:
/*@
ensures \result >= x && \result >= y;
ensures \result == x || \result == y;
*/
int max( int x, int y){
return (x>y) ? x : y;
}
安裝所有要求后:OPAM、why3、alt-ergo 每當我執行frama-c -wp fct.c我收到:
[kernel] Parsing fct.c (with preprocessing)
[wp] Warning: Missing RTE guards
[wp] User Error: Prover 'alt-ergo' not found in why3.conf
[wp] Goal typed_max_ensures : not tried
[wp] Goal typed_max_ensures_2 : not tried
[wp] User Error: Deferred error message was emitted during execution.
See above messages for more information.
[kernel] Plug-in wp aborted: invalid user input.
正如在Frama-C 的安裝說明中提到的,必須明確配置why3
以檢查可用的證明器,通過why3 config --detect
命令(請注意,根據您安裝的Why3 的確切版本,您可能還使用why3 config --full-config
代替)。 您應該看到如下輸出:
Found prover Alt-Ergo version 2.0.0, OK.
... possibly other provers if you have installed them
Save config to /PATH/TO/HOME/.why3.conf
之后,您將能夠在 Frama-C/WP 中使用證明程序
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.