Package bap :: Module bir :: Class Arg
[hide private]
[frames] | no frames]

Class Arg

source code

object --+        
         |        
   adt.ADT --+    
             |    
          Term --+
                 |
                Arg

Arg(id,attrs,lhs,rhs,intent=None) - a subroutine argument

Instance Methods [hide private]

Inherited from adt.ADT: __cmp__, __init__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  exp
a BIL expression associated with the argument
  intent
an instance of Intent class or None if unknown
  var
a variable associated with the argument, e.g.,

Inherited from Term: attrs, id

Inherited from object: __class__

Property Details [hide private]

exp

a BIL expression associated with the argument

Get Method:
unreachable.exp(self) - a BIL expression associated with the argument

intent

an instance of Intent class or None if unknown

Get Method:
unreachable.intent(self) - an instance of Intent class or None if unknown

var

a variable associated with the argument, e.g.,

>>> main = proj.subs.find('main')
>>> main.args[0].var.name
'main_argc'
Get Method:
unreachable.var(self) - a variable associated with the argument, e.g.,