bitctr
This commit is contained in:
27
rssmt.py
27
rssmt.py
@@ -36,30 +36,27 @@ def main():
|
||||
|
||||
print(rsmc_banner)
|
||||
|
||||
#rs = rs_examples.toy_ex3()
|
||||
#rs = rs_examples.bitctr(16)
|
||||
|
||||
#smt = SmtChecker(rs)
|
||||
#smt.check_reachability(["p0","p1","p2","p3","p4","p5","p6","p7","p8","p9","p10","p11","p12","p13","p14","p15"], print_time=True)
|
||||
#smt.check_reachability(["1","3","4"], print_time=True)
|
||||
|
||||
# PGRS:
|
||||
# rsca = rs_examples.ca_toy_ex1()
|
||||
# rsca.show()
|
||||
# smt = SmtCheckerPGRS(rsca)
|
||||
# smt.check_reachability(rs_examples.ca_toy_ex1_property1(), print_time=True)
|
||||
|
||||
rsca = rs_examples.ca_bitctr(N)
|
||||
rsca.show(True)
|
||||
smt = SmtCheckerPGRS(rsca)
|
||||
smt.check_reachability(rs_examples.ca_bitctr_property(N), print_time=True)
|
||||
|
||||
# Distributed RS:
|
||||
|
||||
drs = rs_examples.drs_mutex(N)
|
||||
#drs = rs_examples.drs_mutex(N)
|
||||
#drs.show()
|
||||
|
||||
smt = SmtCheckerDistribRS(drs,debug_level=0)
|
||||
smt.check_reachability(rs_examples.drs_mutex_property1(N),
|
||||
exclusive_state=False,
|
||||
max_level=10,
|
||||
print_time=True,
|
||||
print_mem=True)
|
||||
#smt = SmtCheckerDistribRS(drs,debug_level=0)
|
||||
#smt.check_reachability(rs_examples.drs_mutex_property1(N),
|
||||
# exclusive_state=False,
|
||||
# max_level=10,
|
||||
# print_time=True,
|
||||
# print_mem=True)
|
||||
|
||||
# drs = rs_examples.drs_toy_ex1()
|
||||
# drs.show()
|
||||
|
||||
Reference in New Issue
Block a user