Skip to content

Commit

Permalink
Merge pull request #7 from alex28sh/096-changes
Browse files Browse the repository at this point in the history
096 changes
  • Loading branch information
alex28sh authored Aug 22, 2024
2 parents cfbf692 + 4253c7f commit 45d4551
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Bench/096-count_up_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ def CountUpTo(n : int) -> List[int]:
not (((0) <= (d_2_i_)) and ((d_2_i_) < (len(Result())))) or (((Result())[d_2_i_]) < (n))))
Ensures(Forall(int, lambda d_1_i_:
not (((0) <= (d_1_i_)) and ((d_1_i_) < (len(Result())))) or (IsPrime((Result())[d_1_i_]))))
Ensures(Forall(int, lambda d_3_p_:
Implies((((2) <= (d_3_p_)) and ((d_3_p_) < (n))) and IsPrime(d_3_p_),
Exists(int, lambda x: x >= 0 and x < len(Result()) and Result()[x] == d_3_p_))))
primes = list([int(0)] * 0) # type : List[int]
primes = list([])
if (n) <= (2):
Expand All @@ -29,9 +26,6 @@ def CountUpTo(n : int) -> List[int]:
Implies(x >= 0 and x < len(primes), 2 <= primes[x] and primes[x] < n)))
Invariant(Forall(int, lambda d_5_j_:
(Implies(((0) <= (d_5_j_)) and ((d_5_j_) < (len(primes))), IsPrime((primes)[d_5_j_])), [[IsPrime((primes)[d_5_j_])]])))
Invariant(Forall(int, lambda d_3_p_:
Implies((((2) <= (d_3_p_)) and ((d_3_p_) < (d_4_i_))) and IsPrime(d_3_p_),
Exists(int, lambda x: x >= 0 and x < len(primes) and primes[x] == d_3_p_))))
if IsPrime(d_4_i_):
primes = primes + [(d_4_i_)]
d_4_i_ = (d_4_i_) + (1)
Expand Down

0 comments on commit 45d4551

Please sign in to comment.