-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
96 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
|
||
int foo(int X1, int X2, int X3){ | ||
X1 = X2 + X3; | ||
X1 = X1 + X1; | ||
X1 = X2 + X3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
*/ | ||
|
||
int foo(int X1, int X2, int X3){ | ||
while (X > 0){ | ||
while (0){ | ||
X1 = X2 + X3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
int nondet(); | ||
|
||
void xnu(int len, int beg, int end, int i, int k) { | ||
beg = 0; | ||
end = 0; | ||
i = 0; | ||
while (i < len) { | ||
i = i + 1; | ||
if (nondet()) | ||
end = i; | ||
if (nondet()) { | ||
k = beg; | ||
while (k < end) | ||
k = k + 1; | ||
end = i; | ||
beg = end; | ||
} else if (nondet()) { | ||
end = i; | ||
beg = end; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
void t19(int i, int k) | ||
{ | ||
while (i > 100) | ||
i = i - 1; | ||
i = i + k; | ||
i = i + 50; | ||
while (i >= 0) | ||
i = i - 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
void t20(int x, int y) | ||
{ | ||
while (x < y) | ||
x = x + 1; | ||
while (y < x) | ||
y = y + 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
void t47(int n, int flag) | ||
{ | ||
flag = 1; | ||
|
||
while (flag>0) { | ||
if (n>0) { | ||
n = n - 1; | ||
flag=1; | ||
} else | ||
flag=0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Tool paper section 1, example 1. | ||
*/ | ||
void increasing(int X1, int X2, int X3) { | ||
while (X2 < X1) { X2 = X1 + X1; } | ||
while (X3 < X2) { X3 = X2 + X2; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Tool paper section 2.1, example 2. | ||
*/ | ||
void ex2(int X2, int X3) | ||
{ | ||
while (X3<X2) X3 = X3*X3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Tool paper section 2.1, example 3. | ||
*/ | ||
void ex3(int X1, int X2, int X3) | ||
{ | ||
while(X2 < X1) { X2 = X1 + X1; } | ||
while(X3 < X2) { X3 = X2 + X2; } | ||
X3 = X3 * X3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Flask | ||
flask-cors | ||
pymwp==0.3.0 | ||
pymwp==0.4.2 | ||
jsons |