def setUp(self): init_nusmv() load_from_file( tests.current_directory(__file__) + "/models/flipflops.smv") go_bmc() self.enc = BeEnc.global_singleton_instance() self.mgr = self.enc.manager
def setUp(self): init_nusmv() load_from_file(tests.current_directory(__file__)+"/models/flipflops_trans_invar_fairness.smv") go_bmc() self.fsm = BeFsm.global_master_instance() self.enc = self.fsm.encoding
def setUp(self): init_nusmv() glob.load( tests.current_directory(__file__) + "/models/flipflops_explicit_relation.smv") go_bmc() self._fsm = BeFsm.global_master_instance() self._manager = self._fsm.encoding.manager
def setUp(self): init_nusmv() load_from_file(tests.current_directory(__file__)+"/models/flipflops_vif.smv") go_bmc() self.enc = master_be_fsm().encoding self.v = self.enc.by_name['v'] self.f = self.enc.by_name['f'] self.i = self.enc.by_name['i'] self.n = self.enc.by_name['next(v)']
def __enter__(self): """Performs what one would usually do in setUp""" init_nusmv() load_from_file(self.model) go_bmc() self.testcase.sexpfsm = master_bool_sexp_fsm() self.testcase.befsm = master_be_fsm() self.testcase.enc = self.testcase.befsm.encoding self.testcase.mgr = self.testcase.enc.manager
def setUp(self): init_nusmv() load_from_file( tests.current_directory(__file__) + "/models/flipflops_vif.smv") go_bmc() self.enc = master_be_fsm().encoding self.v = self.enc.by_name['v'] self.f = self.enc.by_name['f'] self.i = self.enc.by_name['i'] self.n = self.enc.by_name['next(v)']
def test_go_bmc(self): # pre conditions not satisfied # model must be loaded with self.assertRaises(NuSMVNoReadModelError): bmcglob.go_bmc() # vars need to be encoded load(self.model()) # it doesn't hurt to call it more than once bmcglob.go_bmc() bmcglob.go_bmc() # unless the force flag is on bmcglob.go_bmc(force=True) bmcglob.bmc_exit()
def setUp(self): init_nusmv() glob.load_from_file(tests.current_directory(__file__)+"/models/dummy_define_justice.smv") bmcGlob.go_bmc() self.fsm = glob.master_bool_sexp_fsm()
def setUp(self): init_nusmv() glob.load(tests.current_directory(__file__) + "/models/flipflops_explicit_relation.smv") go_bmc() self._fsm = BeFsm.global_master_instance() self._manager = self._fsm.encoding.manager
def setUp(self): init_nusmv() load(self.model()) go_bmc()
def setUp(self): init_nusmv() load_from_file(tests.current_directory(__file__)+"/models/flipflops_vif.smv") go_bmc() self._TESTED = BeEnc.global_singleton_instance()
def setUp(self): init_nusmv() load(self.model()) go_bmc() self.fsm = BeFsm.global_master_instance()
def setUp(self): init_nusmv() load_from_file(tests.current_directory(__file__)+"/models/flipflops.smv") go_bmc() self.enc = BeEnc.global_singleton_instance() self.mgr = self.enc.manager
def setUp(self): init_nusmv() load_from_file( tests.current_directory(__file__) + "/models/dummy_invarspecs.smv") go_bmc() self.fsm = master_be_fsm()
def setUp(self): init_nusmv() glob.load(self.model()) go_bmc() self.enc = master_be_fsm().encoding
def setUp(self): init_nusmv() load_from_file(tests.current_directory(__file__)+"/models/dummy_invarspecs.smv") go_bmc() self.fsm = master_be_fsm()
def setUp(self): init_nusmv() load_from_file( tests.current_directory(__file__) + "/models/flipflops_vif.smv") go_bmc() self._TESTED = BeEnc.global_singleton_instance()