@staticmethod
PYL-R0201380 def getChainCondition(self):
381 return set(self.gadgetMatrix.chainCond.nonzero()[1])
382
383 def getReturnCondition(self, to):384 # TODO: use self.gadgetMatrix
385 return None
386
373 def getLength(self):
374 return len(self.instList)
375
376 def getRegisterAccess(self, frm=None, to=None, rflags=False):377 # TODO: use self.gadgetMatrix
378 return None
379
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.