code: def inttoptr(self, typ):
          
          if not isinstance(self.type, types.IntType):
              raise TypeError("can only call inttoptr() on integer constants, not '%s'"
                              % (self.type,))
          if not isinstance(typ, types.PointerType):
              raise TypeError("can only inttoptr() to pointer type, not '%s'"
                              % (typ,))
  
          op = "inttoptr ({0} {1} to {2})".format(self.type,
                                                  self.get_reference(),
                                                  typ)
          return FormattedConstant(typ, op)
docs: Cast this integer constant to the given pointer type.