Commit bd52075c by Jean-Christophe Filliâtre

### ascii art

parent de593c35
 from random import randint from random import randint n = 42 n = 42 ... @@ -17,10 +18,10 @@ while m < len(a): ... @@ -17,10 +18,10 @@ while m < len(a): k = m k = m while k > 0 and a[k-1] > x: while k > 0 and a[k-1] > x: #@ invariant 0 <= k <= m #@ invariant 0 <= k <= m #@ invariant forall j. k < j <= m -> x < a[j] #@ invariant forall i,j. 0 <= i <= j < k -> a[i] <= a[j] #@ invariant forall i,j. k < i <= j <= m -> a[i] <= a[j] #@ invariant forall i,j. 0 <= i < k < j <= m -> a[i] <= a[j] #@ invariant forall i,j. 0 <= i <= j < k -> a[i] <= a[j] #@ invariant forall i,j. k < i <= j <= m -> a[i] <= a[j] #@ invariant forall i,j. 0 <= i < k < j <= m -> a[i] <= a[j] #@ invariant forall j. k < j <= m -> x < a[j] #@ variant k #@ variant k a[k] = a[k-1] a[k] = a[k-1] k = k - 1 k = k - 1 ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!