-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from bjjwwang/0807
fix testsuite for stage3, move unpass cases
- Loading branch information
Showing
72 changed files
with
123 additions
and
47 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
|
||
|
||
int main(){ | ||
int x = -1; // 10000000001 | ||
x += 3; // 0000000011 | ||
|
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,9 +1,14 @@ | ||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
int main(int i) { | ||
int a, c; | ||
extern void svf_assert_eq(int, int); | ||
extern void set_value(int, int, int); | ||
extern void svf_print(int, char*); | ||
int main() { | ||
volatile int i; | ||
set_value(i, 0, 100); | ||
volatile int a, c; | ||
a = i + 1; | ||
c = a; | ||
svf_assert( c == i + 1 ); | ||
svf_assert_eq(c, i+1); | ||
return 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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
|
||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
extern void svf_print(int, char*); | ||
int main() { | ||
int a = 10; | ||
int b = 5; | ||
int c = a / b; | ||
int d = a % b; | ||
svf_print(c, "c"); | ||
svf_print(d, "d"); | ||
svf_assert(c == 2 && d == 0); | ||
return 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
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
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
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,13 +1,19 @@ | ||
#include <stdlib.h> | ||
#include "stdbool.h" | ||
#include "math.h" | ||
extern void svf_assert(bool); | ||
extern void svf_assert_eq(int, int); | ||
|
||
extern void svf_print(int, char*); | ||
int main() { | ||
int a; | ||
int a = rand(); | ||
if (a > 5 && a < 7) { | ||
svf_print(a, "a value"); | ||
svf_assert(a == 6); | ||
} | ||
else { | ||
svf_assert(a <= 5 || a >= 7); | ||
// top | ||
int res = rand(); | ||
svf_assert_eq(a, res); | ||
} | ||
} |
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,14 +1,16 @@ | ||
#include "stdbool.h" | ||
#include "math.h" | ||
extern void svf_assert(bool); | ||
|
||
extern void svf_print(int, char*); | ||
int main() { | ||
int a; //a = [-INF, INF] | ||
int a = rand(); //a = [-INF, INF] | ||
int b = 1; | ||
b = a - b; | ||
if (a > 5) { //a = [6, INF] | ||
svf_assert(b <= -5); | ||
b = a - b; | ||
svf_assert(b >= 5); | ||
} | ||
else { | ||
svf_assert(b > -5); | ||
b = a - b; | ||
svf_assert(b <= 4); | ||
} | ||
} |
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,14 +1,16 @@ | ||
#include "stdbool.h" | ||
#include "math.h" | ||
extern void svf_assert(bool); | ||
|
||
int main() { | ||
int a; //a = [-INF, INF] | ||
int a = rand(); //a = [-INF, INF] | ||
int b = -2; | ||
b = a * b; | ||
if (a > 5) { //a = [6, INF] | ||
b = a * b; | ||
svf_assert(b <= -12); | ||
} | ||
else { | ||
b = a * b; | ||
svf_assert(b > -12); | ||
} | ||
} |
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,11 +1,12 @@ | ||
#include "stdbool.h" | ||
#include "math.h" | ||
extern void svf_assert(bool); | ||
|
||
int main() { | ||
int a; //a = [-INF, INF] | ||
int a = rand(); //a = [-INF, INF] | ||
int b = 10; | ||
b = b / a; | ||
if(a > 0 && a <= 5) { | ||
b = b / a; | ||
svf_assert(b >= 2); | ||
} | ||
} |
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
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,16 +1,20 @@ | ||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
extern void svf_print(int, char*); | ||
|
||
int main() { | ||
//int a = 0; | ||
int a; | ||
int b = 1; | ||
scanf("%d", &a); //[-INF, INF] top | ||
b = a + b; | ||
if (a > 5) { //a = [6, INF] | ||
b = a + b; | ||
svf_print(b, "b1"); | ||
svf_assert(b > 6); //b = [1, 1] + [6, INF] | ||
} | ||
else { | ||
svf_assert(b <= 5); | ||
b = a + b; | ||
svf_print(b, "b2"); | ||
svf_assert(b <= 6); | ||
} | ||
} |
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,11 +1,13 @@ | ||
#include <stdlib.h> | ||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
extern void svf_print(int, char*); | ||
|
||
int main() { | ||
int a; | ||
int a = rand(); | ||
while(a < 10) { | ||
a++; | ||
} | ||
svf_assert(a == 10); | ||
svf_print(a, "a"); | ||
svf_assert(a >= 10); | ||
} |
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,14 +1,17 @@ | ||
#include "stdbool.h" | ||
#include "math.h" | ||
extern void svf_assert(bool); | ||
extern void svf_print(int, char*); | ||
|
||
int main() { | ||
int a; //a = [-INF, INF] | ||
int a = rand(); //a = [-INF, INF] | ||
int b = 1; | ||
b = a + b; | ||
if (a > 5) { //a = [6, INF] | ||
b = a + b; | ||
svf_assert(b > 6); //b = [1, 1] + [6, INF] | ||
} | ||
else { | ||
svf_assert(b <= 5); | ||
b = a + b; | ||
svf_assert(b <= 6); | ||
} | ||
} |
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
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,9 +1,14 @@ | ||
#include "stdbool.h" | ||
extern void svf_assert(bool); | ||
extern void svf_assert_eq(int, int); | ||
extern void set_value(int, int, int); | ||
extern void svf_print(int, char*); | ||
int main() { | ||
int i = 0; | ||
for (i = 0; i < 5; i++) { | ||
i++; | ||
} | ||
svf_assert(i == 6); | ||
int res; | ||
set_value(res, 5, 6); | ||
svf_assert_eq(i, res); | ||
} |
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
Oops, something went wrong.