Skip to content

Commit cb48cdb

Browse files
Streamline test cases.
1 parent ee02a4a commit cb48cdb

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ fuzz2
2828
.*.swp
2929
.ycm_extra_conf.py
3030
compile_commands.json
31+
32+
# Our solutions
33+
soln

ex2/test/simple0.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
#include "../include/Runtime.h"
44

55
int main() {
6-
int x;
7-
DSE_Input(x);
8-
int y = x;
9-
if (y == 1024) {
10-
int z = 4 / (y - 1024);
11-
}
6+
int x; DSE_Input(x);
7+
x = x + 1;
128
return 0;
139
}

ex2/test/simple1.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
#include "../include/Runtime.h"
44

55
int main() {
6-
int x;
7-
DSE_Input(x);
8-
int y;
9-
DSE_Input(y);
10-
if (x < 0) {
11-
if (y == 1024) {
12-
int z = 4 / (y - 1024);
13-
}
14-
}
6+
int x; DSE_Input(x);
7+
int y; DSE_Input(y);
8+
int z = x / y;
159
return 0;
1610
}

0 commit comments

Comments
 (0)