'Get the value of a register.
:param str k: Name of the register. Prefix it with "_" prevents SimInspect being triggered and SimActions being
created.
:param v:     Value to set to the register.
:return:      Value of the register.
:rtype:       claripy.ast.Base'

def __getattr__(self, k):

    state = super(SimRegNameView, self).__getattribute__('state')
    if (isinstance(k, str) and k.startswith('_')):
        k = k[1:]
        inspect = False
        disable_actions = True
    else:
        inspect = True
        disable_actions = False
    try:
        return state.registers.load(k, inspect=inspect, disable_actions=disable_actions)
    except KeyError:
        return super(SimRegNameView, self).__getattribute__(k)
