I often use cardinality of sets in others formal specifications and I wondering if it was possible to use it in ACSL with WP frama-c plugin.
For example, it seems clearer to me to write
assumes card({*a, *b, *c}) == 3
rather than
assumes *a != *b && *a != *c && *b != *c
Alright, I found a solution (a slow one I warn you, had to change the timeout from 10 seconds to 30 seconds just for the following example). Also it is broken in Frama-C version Calcium claiming that it can't find the Qed library (the bug appears to be in attempting to call a
logic booleantype Frama-C function). It works properly in Frama-C version Chlorine (didn't test other versions).