forked from sventhijssen/compact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (39 loc) · 1.36 KB
/
config.py
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
import pathlib
import platform
from Log import Log
from cli.ContextManager import ContextManager
context_manager = ContextManager()
log = Log()
# Settings for BDD
time_limit_bdd = 60
bdd = "robdd"
bdd_parser = None
# Settings for COMPACT
# Apply a time limit
time_limit = None
# Keep auxiliary files from CPLEX
keep_files = False
mapping_method = "compact"
root = pathlib.Path(__file__).parent.absolute()
benchmark_path = root.joinpath('Benchmarks')
abc_path = root.joinpath('abc')
if platform.system() == 'Windows':
bash_cmd = ['bash', '-c']
lt_spice_dir = pathlib.Path('C:\Program Files\LTC\LTspiceXVII\XVIIx64.exe')
lt_spice_cmd = ['./XVIIx64.exe', '-Run', '-b']
cplex_path = '/opt/ibm/ILOG/CPLEX_Studio201/cplex/bin/x64_win64/cplex.exe'
elif platform.system() == 'Linux':
bash_cmd = ['/bin/bash', '-c']
lt_spice_dir = pathlib.Path('/home/sven/.wine/drive_c/Program Files/LTC/LTspiceXVII')
lt_spice_cmd = ['wine', './XVIIx64.exe', '-Run', '-b']
cplex_path = '/opt/ibm/ILOG/CPLEX_Studio201/cplex/bin/x86-64_linux/cplex'
elif platform.system() == 'Darwin':
bash_cmd = []
lt_spice_dir = None
lt_spice_cmd = None
cplex_path = '/Applications/CPLEX_Studio201/cplex/bin/x86-64_osx/cplex'
else:
raise Exception("Unsupported OS: {}".format(platform.system()))
abc_cmd = bash_cmd.copy()
abc_cmd.extend(['"./abc"'])
abc_cmd = ' '.join(abc_cmd)