[Why3-club] iteration over the elemnts of a list

2018-03-29 Thread Julia Lawall
Is there an example that uses a while loop to iterate over the elements of a list? I tried: while (not(!rdy = Nil)) do variant { !rdy } match !rdy with Nil -> () | Cons t ts -> rdy := ts; end; done but at the call site of the function that contains this code,

Re: [Why3-club] iteration over the elemnts of a list

2018-03-29 Thread Julia Lawall
On Thu, 29 Mar 2018, Jean-Christophe Filliatre wrote: > Hi Julia, > > > but at the call site of the function that contains this code, it complains > > that: > > > > warning: this expression may diverge, which is not stated in the > > specification > > > > Can I just ignore the warning? > > If

Re: [Why3-club] iteration over the elemnts of a list

2018-03-29 Thread Julia Lawall
On Thu, 29 Mar 2018, Jean-Christophe Filliatre wrote: > Hi Julia, > > > but at the call site of the function that contains this code, it complains > > that: > > > > warning: this expression may diverge, which is not stated in the > > specification > > > > Can I just ignore the warning? > > If