Skip to content

Commit 4eb8448

Browse files
committed
cflobvdd C code with additional data flow to exercise BDDs
1 parent 9a78c67 commit 4eb8448

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/symbolic/cflobvdd.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
uint64_t main() {
2+
uint64_t* x;
23
uint64_t a;
34
uint64_t b;
4-
uint64_t* x;
5+
uint64_t x1;
6+
uint64_t x2;
57

68
x = malloc(sizeof(uint64_t));
79

@@ -12,8 +14,11 @@ uint64_t main() {
1214

1315
while (a < 2) {
1416
read(0, x, 1);
17+
x1 = *x;
18+
read(0, x, 1);
19+
x2 = *x;
1520

16-
if (*x == 48)
21+
if (x1 * x2 == 42)
1722
b = b + 1;
1823

1924
a = a + 1;

0 commit comments

Comments
 (0)