-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path41.cpp
34 lines (26 loc) · 771 Bytes
/
41.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "iif.h"
#include <iostream>
using namespace std;
using namespace iif;
int loopFunction(int _reserved_input_[]) {
int x = _reserved_input_[0];
int y = _reserved_input_[1];
int z = _reserved_input_[2];
iif_assume(x == y && y == 0 && z==0);
while(rand()%2) {
recordi(x, y, z);
x++;
y++;
z-=2;
}
recordi(x, y, z);
iif_assert(x == y && x >= 0 && x+y+z==0);
return 0;
}
int main(int argc, char** argv) {
iifround = atoi(argv[1]);
initseed = atoi(argv[2]);
iifContext context("/home/lijiaying/Research/zilu/tmp/41.var", loopFunction, "loopFunction", "/home/lijiaying/Research/zilu/tmp/41.ds");
context.addLearner("conjunctive");
return context.learn("/home/lijiaying/Research/zilu/tmp/41.cnt", "/home/lijiaying/Research/zilu/tmp/41");
}