-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
50 lines (35 loc) · 1.09 KB
/
main.cpp
File metadata and controls
50 lines (35 loc) · 1.09 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "framework/ts.h"
#include "framework/btor2_encoder.h"
#include "deps/smt-switch/local/include/smt-switch/boolector_factory.h"
#include "assert.h"
using namespace pono;
using namespace smt;
using namespace std;
int main(int argc, char** argv){
if(argv[1] == NULL){
cout << "NO Input File!" << endl;
}
else{
cout << "Input File: " << argv[1] << endl;
}
std::string input_file;
input_file = argv[1];
SmtSolver s = BoolectorSolverFactory::create(false);
pono::TransitionSystem ts(s);
BTOR2Encoder btor_paser(input_file, ts);
cout << "TS init: " << ts.init() << endl;
cout << "\nTS trans: " << ts.trans() << endl;
cout << "\nTS input vars: " << endl;
for(auto var: ts.inputvars()){
cout << var << endl;
}
cout << "\nTS state vars: " << endl;
for(auto var: ts.statevars()){
cout << var << endl;
}
// btor_paser.preprocess(input_file);
// btor_paser.parse(input_file);
// cout << "input0: " << argv[0] << endl;
// cout << "input1: " << argv[1] << endl;
return 0;
}