cleanup
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from sys import exit
|
from sys import exit
|
||||||
from colour import *
|
from colour import *
|
||||||
|
|
||||||
class ContextAutomaton(object):
|
class ContextAutomaton(object):
|
||||||
|
|
||||||
def __init__(self, reaction_system):
|
def __init__(self, reaction_system):
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ from rs.context_automaton import ContextAutomaton
|
|||||||
class ContextAutomatonWithConcentrations(ContextAutomaton):
|
class ContextAutomatonWithConcentrations(ContextAutomaton):
|
||||||
|
|
||||||
def __init__(self, reaction_system):
|
def __init__(self, reaction_system):
|
||||||
self._states = []
|
super(ContextAutomatonWithConcentrations, self).__init__(reaction_system)
|
||||||
self._transitions = []
|
|
||||||
self._init_state = None
|
|
||||||
self._reaction_system = reaction_system
|
|
||||||
|
|
||||||
def is_valid_context(self, context):
|
def is_valid_context(self, context):
|
||||||
if set([e for e,lvl in context]).issubset(self._reaction_system.background_set):
|
if set([e for e,lvl in context]).issubset(self._reaction_system.background_set):
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
from rs import *
|
from rs import *
|
||||||
from smt import *
|
from smt import *
|
||||||
|
import rs_examples
|
||||||
|
|
||||||
def run_tests():
|
def run_tests():
|
||||||
|
|
||||||
test_extended_automaton()
|
# test_extended_automaton()
|
||||||
# process()
|
process()
|
||||||
|
|
||||||
def test_extended_automaton():
|
def test_extended_automaton():
|
||||||
|
|
||||||
|
|||||||
6
rssmt.py
6
rssmt.py
@@ -21,10 +21,12 @@ profiling = False
|
|||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
version = "2016/12/28/00"
|
version = "2016/12/28/00"
|
||||||
rsmc_banner = """Reaction Systems SMT-Based Model Checking
|
rsmc_banner = """
|
||||||
|
Reaction Systems SMT-Based Model Checking
|
||||||
|
|
||||||
Version: """ + version + """
|
Version: """ + version + """
|
||||||
Author: Artur Męski <meski@ipipan.waw.pl> / <artur.meski@ncl.ac.uk>"""
|
Author: Artur Męski <meski@ipipan.waw.pl> / <artur.meski@ncl.ac.uk>
|
||||||
|
"""
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user