(self, fmt='b')
return str_
Return a string representation of the BitVector.

        fmt: 'b' : Binary
             'd' : Decimal
             'x' : Hexadecimal

        The representation is always unsigned
Return a string representation of the BitVector.
Return a string representation of the BitVector .
def bv_str(self, fmt='b'):
        """Return a string representation of the BitVector.

        fmt: 'b' : Binary
             'd' : Decimal
             'x' : Hexadecimal

        The representation is always unsigned
        """
        if fmt == 'b':
            fstr = '{0:0%db}' % self.bv_width()
        elif fmt == 'd':
            fstr = '{}'
        else:
            assert fmt == 'x', "Unknown option %s" % str(fmt)
            fstr = '{0:0%dx}' % (self.bv_width()/4)
        str_ = fstr.format(self.constant_value())
        return str_
def bv_str ( self , fmt = 'b' ) : if fmt == 'b' : fstr = '{0:0%db}' % self . bv_width ( ) elif fmt == 'd' : fstr = '{}' else : assert fmt == 'x' , "Unknown option %s" % str ( fmt ) fstr = '{0:0%dx}' % ( self . bv_width ( ) / 4 ) str_ = fstr . format ( self . constant_value ( ) ) return str_