about summary refs log tree commit diff stats
path: root/miasm2/core/sembuilder.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-09-20 07:53:13 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-10-01 06:55:22 +0200
commit9c4c548e372311f6d685647b3cfed35e1579ad54 (patch)
treee29e888313ab79d5150ecd517c0fe3d8ada8e977 /miasm2/core/sembuilder.py
parent9c8596646ba6150694deb984f25aaad73d2c7125 (diff)
downloadmiasm-9c4c548e372311f6d685647b3cfed35e1579ad54.tar.gz
miasm-9c4c548e372311f6d685647b3cfed35e1579ad54.zip
Expresion: use ExprAssign instead of ExprAff
ExprAff stands for (in french) "Expression affectation"
We will now use ExprAssign (for Expression Assignment)
(instead of ExprAss)
Diffstat (limited to 'miasm2/core/sembuilder.py')
-rw-r--r--miasm2/core/sembuilder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/core/sembuilder.py b/miasm2/core/sembuilder.py
index ab1af953..67c6c257 100644
--- a/miasm2/core/sembuilder.py
+++ b/miasm2/core/sembuilder.py
@@ -161,7 +161,7 @@ class SemBuilder(object):
         """Recursive function transforming a @body to a block expression
         Return:
          - AST to append to body (real python statements)
-         - a list of blocks, ie list of affblock, ie list of ExprAff (AST)"""
+         - a list of blocks, ie list of affblock, ie list of ExprAssign (AST)"""
 
         # Init
         ## Real instructions
@@ -188,7 +188,7 @@ class SemBuilder(object):
 
                 dst.ctx = ast.Load()
 
-                res = ast.Call(func=ast.Name(id='ExprAff',
+                res = ast.Call(func=ast.Name(id='ExprAssign',
                                              ctx=ast.Load()),
                                args=[dst, src],
                                keywords=[],
@@ -230,7 +230,7 @@ class SemBuilder(object):
                 IRDst = ast.Attribute(value=ast.Name(id='ir',
                                                      ctx=ast.Load()),
                                       attr='IRDst', ctx=ast.Load())
-                blocks[-1][-1].append(ast.Call(func=ast.Name(id='ExprAff',
+                blocks[-1][-1].append(ast.Call(func=ast.Name(id='ExprAssign',
                                                              ctx=ast.Load()),
                                                args=[IRDst, dst],
                                                keywords=[],
@@ -248,7 +248,7 @@ class SemBuilder(object):
                         raise RuntimeError("Imbricated if unimplemented")
 
                     ## Close the last block
-                    jmp_end = ast.Call(func=ast.Name(id='ExprAff',
+                    jmp_end = ast.Call(func=ast.Name(id='ExprAssign',
                                                      ctx=ast.Load()),
                                        args=[IRDst, loc_end],
                                        keywords=[],