Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] why3IDE interactive proof session popup



Hi Xiao-lei,

2013/11/27 Xiao-lei Cui <x_cui at hotmail.com>:
> extern void g(void);
> extern int h(void);
>
> int f(void){
>     //@ asserts pre-condition-of (g) ?
>     g();
>     //@ asserts post-condition-of (g) ?
>     return (h());       /*how to specify the return value here?*/
> }
>

I see no other way than using a temporary variable:
  int res_tmp;
[...]
 res_tmp = h();
 //@ assert something on res_tmp;
 return res_tmp;

Best regards,
david