diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-01-30 14:56:01 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-01-30 21:10:01 +0100 |
| commit | 3bf16e07198476e614462cb189c7f0ce7a91e444 (patch) | |
| tree | 12e9aafda5e40182a3f00a65a50d1d2eaf1aa7d2 /miasm2/analysis/depgraph.py | |
| parent | 1cb9cbcc2d71d76faf10d7b822f29c035a758343 (diff) | |
| download | miasm-3bf16e07198476e614462cb189c7f0ce7a91e444.tar.gz miasm-3bf16e07198476e614462cb189c7f0ce7a91e444.zip | |
Tipo: dictionary
Diffstat (limited to 'miasm2/analysis/depgraph.py')
| -rw-r--r-- | miasm2/analysis/depgraph.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py index 0a5d38aa..a7c16a19 100644 --- a/miasm2/analysis/depgraph.py +++ b/miasm2/analysis/depgraph.py @@ -122,7 +122,7 @@ class DependencyNode(object): class CacheWrapper(IterableUserDict): - """Wrapper class for cache dictionnary""" + """Wrapper class for cache dictionary""" def __init__(self, dct=None): """Create a CacheWrapper with value @dct.""" @@ -148,9 +148,9 @@ class CacheWrapper(IterableUserDict): @property def nostep_cache(self): - """Dictionnary of DependencyNode and their dependencies, + """Dictionary of DependencyNode and their dependencies, without the step attribute. - The dictionnary is generated once when the method is called for the + The dictionary is generated once when the method is called for the first time and not updated afterward. """ if self._nostep_cache is None: @@ -239,12 +239,12 @@ class DependencyDict(object): @property def cache(self): - "Dictionnary of DependencyNode and their dependencies" + "Dictionary of DependencyNode and their dependencies" return self._cache @property def pending(self): - """Dictionnary of DependencyNode and their dependencies, waiting for + """Dictionary of DependencyNode and their dependencies, waiting for resolution""" return self._pending @@ -530,7 +530,7 @@ class DependencyResult(object): @property def has_loop(self): - """True if current dictionnary has a loop""" + """True if current dictionary has a loop""" if self._has_loop is None: self._has_loop = (len(self.relevant_labels) != len(set(self.relevant_labels))) @@ -539,7 +539,7 @@ class DependencyResult(object): def emul(self, ctx=None, step=False): """Symbolic execution of relevant nodes according to the history Return the values of input nodes' elements - @ctx: (optional) Initial context as dictionnary + @ctx: (optional) Initial context as dictionary @step: (optional) Verbose execution Warning: The emulation is not sound if the input nodes depend on loop |