Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks #4

Merged
merged 10 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: Nagini Tests (Changed) Ubuntu

on:
pull_request:
types: [synchronize]
branches:
- main

Expand Down
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
Loading