-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path21.cpp
38 lines (30 loc) · 805 Bytes
/
21.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
34
35
36
37
#include "iif.h"
#include <iostream>
using namespace std;
using namespace iif;
int loopFunction(int _reserved_input_[]) {
int n = _reserved_input_[0];
int i = _reserved_input_[1];
int k = _reserved_input_[2];
iif_assume( k==0&&i==0&&n>0&&n<10);
while(i<n) {
recordi(n, i, k);
i++;
if(rand()%2==0){
k+=40;
}
else{
k+=20;
}
}
recordi(n, i, k);
iif_assert(k>n);
return 0;
}
int main(int argc, char** argv) {
iifround = atoi(argv[1]);
initseed = atoi(argv[2]);
iifContext context("/home/lijiaying/Research/GitHub/zilu/tmp/21.var", loopFunction, "loopFunction", "/home/lijiaying/Research/GitHub/zilu/tmp/21.ds");
context.addLearner("conjunctive");
return context.learn("/home/lijiaying/Research/GitHub/zilu/tmp/21.cnt", "/home/lijiaying/Research/GitHub/zilu/tmp/21");
}