示例#1
0
	def dumpSolveInfo(self):
		console = self.console
		console.output("Constraints:   %d" % len(self.constraints))
		console.output("Contexts:      %d" % len(self.liveContexts))
		console.output("Code:          %d" % len(self.liveCode))
		console.output("Contexts/Code: %.1f" % (float(len(self.liveContexts))/max(len(self.liveCode), 1)))
		console.output("Slot Memory:   %s" % formatting.memorySize(self.slotMemory()))
		console.output('')
		console.output("Decompile:     %s" % formatting.elapsedTime(self.decompileTime))
		console.output("Solve:         %s" % formatting.elapsedTime(self.solveTime))
		console.output('')
示例#2
0
 def dumpSolveInfo(self):
     console = self.console
     console.output("Constraints:   %d" % len(self.constraints))
     console.output("Contexts:      %d" % len(self.liveContexts))
     console.output("Code:          %d" % len(self.liveCode))
     console.output(
         "Contexts/Code: %.1f" %
         (float(len(self.liveContexts)) / max(len(self.liveCode), 1)))
     console.output("Slot Memory:   %s" %
                    formatting.memorySize(self.slotMemory()))
     console.output('')
     console.output("Decompile:     %s" %
                    formatting.elapsedTime(self.decompileTime))
     console.output("Solve:         %s" %
                    formatting.elapsedTime(self.solveTime))
     console.output('')
示例#3
0
文件: console.py 项目: winex/pystream
 def end(self):
     self.current.end()
     self.output(
         "end   %s %s" %
         (self.path(), formatting.elapsedTime(self.current.elapsed)), 0)
     self.current = self.current.parent
示例#4
0
	def end(self):
		self.current.end()
		self.output("end   %s %s" % (self.path(), formatting.elapsedTime(self.current.elapsed)), 0)
		self.current = self.current.parent