- Cleanup of the output printing

- Fixed a bounds error (for single protocols)
This commit is contained in:
ccremers 2005-03-02 20:17:21 +00:00
parent e2df02000f
commit fd6d8f7880

View File

@ -129,6 +129,10 @@ def ScytherEval (plist):
sys.stderr.flush() sys.stderr.flush()
n = len(plist) n = len(plist)
# These bounds assume at least two protocols, otherwise
# stuff breaks.
if n < 2:
n = 2
timer = 1 timer = 1
maxruns = 2 maxruns = 2
maxlength = 10 maxlength = 10
@ -270,11 +274,10 @@ def DescribeContextBrief (filep, protocols, claim, prefix):
for prfile in protocols: for prfile in protocols:
prnames = GetKeys (ProtocolToFileMap, prfile) prnames = GetKeys (ProtocolToFileMap, prfile)
prlist = prlist + prnames prlist = prlist + prnames
newprname = claim.split()[0]
filep.write ("\t" + newprname)
filep.write ("\t" + claim) filep.write ("\t" + claim)
newprname = claim.split()[0]
prlistclean = [] prlistclean = []
prliststr = "" prliststr = ""
for pn in prlist: for pn in prlist: