Skip to content

Commit

Permalink
Really fix count_array.lus
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz committed Sep 26, 2024
1 parent f8c54f5 commit a811323
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/param/count_array.lus
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ let
--%PROPERTY n > 0 => (C >= 0 and C <= n) ;
tel

const N: int = 4;
--const N: subrange [3,*] of int;

node atmone( const n: int; ) returns ( ok : bool ) ;
var B : bool^n ;
node atmone( ) returns ( ok : bool ) ;
var B : bool^N ;
let
assert (n > 2);
B[i] = if i = 2 then true else true;
-- B = [false, true, true, false];
ok = count(4, B) <= 1;
ok = count(N, B) <= 1;

--%PROPERTY ok;
tel

0 comments on commit a811323

Please sign in to comment.