Skip to content

Commit

Permalink
Merge branch 'main' into 096
Browse files Browse the repository at this point in the history
  • Loading branch information
alex28sh authored Aug 22, 2024
2 parents 96fd990 + b069f5b commit e9bd943
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Bench/000-has-close-elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def has_close_elements(numbers: List[int], threshold: int) -> bool:
fn(x, numbers, threshold)
)))


flag = False
i = 0
while i < len(numbers):
Expand Down
7 changes: 4 additions & 3 deletions WIP/104-unique_digits.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def UniqueDigits(x : List[int]) -> List[int]:
(d_9_j_ >= 0 and d_9_j_ < len(Result())) and Result()[d_9_j_] == x[d_8_e_]))))
Ensures(Forall(int, lambda d_7_e_:
not ((d_7_e_) >= 0 and d_7_e_ < len(Result())) or (Exists(int, lambda d_8_j_: (d_8_j_ >= 0 and d_8_j_ < len(x)) and x[d_8_j_] == Result()[d_7_e_]))))
# Ensures(Forall(int, lambda d_1_i_:
# Forall(int, lambda d_2_j_:
# not ((((0) <= (d_1_i_)) and ((d_1_i_) < (d_2_j_))) and ((d_2_j_) < (len(Result())))) or (((Result())[d_1_i_]) <= ((Result())[d_2_j_])))))
Ensures(Forall(int, lambda d_1_i_:
Forall(int, lambda d_2_j_:
not ((((0) <= (d_1_i_)) and ((d_1_i_) < (d_2_j_))) and ((d_2_j_) < (len(Result())))) or (((Result())[d_1_i_]) <= ((Result())[d_2_j_])))))
result = list([int(0)] * 0) # type : List[int]
result = list([])
d_5_i_ = 0

while d_5_i_ < len(x):
Invariant(Acc(list_pred(result)))
Invariant(Acc(list_pred(x), 1/2))
Expand Down
4 changes: 4 additions & 0 deletions public/scripts/test-new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ file_count=0
echo "New files found:"
for f in $1; do
# Check if the file is in the known directory
echo "check"
echo $f
if [[ $f == $DIRECTORY/* ]]; then
echo "check1"
echo $f
if [[ $f == *.py ]]; then
echo $f
file_count=$((file_count+1))
Expand Down

0 comments on commit e9bd943

Please sign in to comment.