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] Array elements passed as reference
- Subject: [Frama-c-discuss] Array elements passed as reference
- From: Boris.Hollas at de.bosch.com (Hollas Boris (CR/AEY1))
- Date: Mon, 8 Jun 2009 10:20:31 +0200
Hello, Consider the code below (example code from bug http://bts.frama-c.com/view.php?id=38). Copy is called with array elements passed as reference. In the absence of a modifies-clause, which of the following assumptions does Jessie make in this situation? 1) Copy may modify arbitrary elements in a[] 2) Copy may modify at most a[0] and a[i] Regards, Boris ------------------------------- void Copy(int *p, int *q) { *q = *p; } int foo(int a[]) { int i=1; Copy(&a[0], &a[i]); return i; }
- Prev by Date: [Frama-c-discuss] Inductive definition of reachability in array-implemented list.
- Next by Date: [Frama-c-discuss] Inductive definition of reachability in array-implemented list.
- Previous by thread: [Frama-c-discuss] Inductive definition of reachability in an array-implemented list.
- Next by thread: [Frama-c-discuss] [Jessie] pset_disjoint
- Index(es):