-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMachineBuilder.h
37 lines (27 loc) · 1.08 KB
/
MachineBuilder.h
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
/*
* MachineBuilder.h
*
* Created on: 06.03.2015
* Author: Andreas Abel
*/
#ifndef MACHINEBUILDER_H_
#define MACHINEBUILDER_H_
#include <stdlib.h>
#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <fstream>
#include <sstream>
#include "IncSpecSeq.h"
using std::cout;
using std::endl;
using std::vector;
using std::map;
using std::set;
using std::pair;
using std::stringstream;
void buildMachine(vector<vector<int> >& newMachineNextState, vector<vector<IncSpecSeq*> >& newMachineOutput, int& newResetState, int nClasses, vector<int>& dimacsOutput, vector<pair<int, int> >& literalToStateClass, vector<vector<int> >& origMachineNextState, vector<vector<IncSpecSeq*> >& origMachineOutput, int origResetState, int maxInput);
string inputToBinary(int input, int inputLength);
void writeKISSFile(vector<vector<int> >& machineNextState, vector<vector<IncSpecSeq*> >& machineOutput, int resetState, int inputLength, int outputLength, vector<IncSpecSeq>& inputIDToIncSpecSeq, string filename);
#endif /* MACHINEBUILDER_H_ */