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] nondeterminism
- Subject: [Frama-c-discuss] nondeterminism
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- Date: Mon, 16 Sep 2013 02:02:10 +0200
- In-reply-to: <DD364AE0-687C-4A68-887F-ECE38E7104A7@udel.edu>
- References: <DD364AE0-687C-4A68-887F-ECE38E7104A7@udel.edu>
On Mon, Sep 16, 2013 at 1:39 AM, Stephen Siegel <siegel at udel.edu> wrote: > > I guess you could obtain something like this using a function > "chooseBool()" which returns a boolean and which is totally unconstrained, > and use that as the condition in an "if" statement. Or you could use a > function "chooseInt()" with a switch statement. > > You will find contracts for functions Frama_C_interval() and Frama_C_nondet() in __fc_builtin.h: extern int Frama_C_entropy_source; /*@ assigns \result \from a, b, Frama_C_entropy_source; assigns Frama_C_entropy_source \from Frama_C_entropy_source; ensures \result == a || \result == b ; */ int Frama_C_nondet(int a, int b); /*@ assigns \result \from min, max, Frama_C_entropy_source; assigns Frama_C_entropy_source \from Frama_C_entropy_source; ensures min <= \result <= max ; */ int Frama_C_interval(int min, int max); -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20130916/e2fb47b5/attachment.html>
- References:
- [Frama-c-discuss] nondeterminism
- From: siegel at udel.edu (Stephen Siegel)
- [Frama-c-discuss] nondeterminism
- Prev by Date: [Frama-c-discuss] nondeterminism
- Next by Date: [Frama-c-discuss] Whether could I know in advance it would have errors before adding a file (Kernel.Files.add)?
- Previous by thread: [Frama-c-discuss] nondeterminism
- Next by thread: [Frama-c-discuss] Patch for ocaml 4.01.0
- Index(es):