black formatting
This commit is contained in:
@@ -5,26 +5,26 @@ from smt import *
|
||||
from logics import *
|
||||
from rsltl_shortcuts import *
|
||||
|
||||
|
||||
def ex():
|
||||
|
||||
prs = ReactionSystemWithConcentrationsParam()
|
||||
|
||||
ent_with_conc = [("a", 3), ("b",2), ("c",1), ("h",1)]
|
||||
|
||||
ent_with_conc = [("a", 3), ("b", 2), ("c", 1), ("h", 1)]
|
||||
|
||||
for ec in ent_with_conc:
|
||||
prs.add_bg_set_entity(ec)
|
||||
|
||||
lda = prs.get_param("lda")
|
||||
|
||||
prs.add_reaction([("a",1)],[("h",1)],[("b", 2)])
|
||||
prs.add_reaction(lda,[("h",1)],[("c",1)])
|
||||
|
||||
|
||||
prs.add_reaction([("a", 1)], [("h", 1)], [("b", 2)])
|
||||
prs.add_reaction(lda, [("h", 1)], [("c", 1)])
|
||||
|
||||
##
|
||||
|
||||
ca = ContextAutomatonWithConcentrations(prs)
|
||||
ca.add_init_state("0")
|
||||
ca.add_state("1")
|
||||
|
||||
|
||||
ca.add_transition("0", [("a", 3)], "1")
|
||||
ca.add_transition("1", [], "1")
|
||||
ca.add_transition("1", [("h", 1)], "1")
|
||||
@@ -37,8 +37,9 @@ def ex():
|
||||
|
||||
checker = SmtCheckerRSCParam(crprs, optimise=True)
|
||||
checker.check_rsltl(formulae_list=[f], param_constr=pc)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ex()
|
||||
ex()
|
||||
|
||||
# EOF
|
||||
|
||||
Reference in New Issue
Block a user