LLVM 24.0.0git
llvm::ubi::WildcardProvenance Class Reference

A set of previously exposed provenances. More...

#include "llvm/UBAwareInterpreter/Value.h"

Inheritance diagram for llvm::ubi::WildcardProvenance:
[legend]

Public Member Functions

 WildcardProvenance (uint64_t Generation)
Public Member Functions inherited from llvm::RefCountedBase< WildcardProvenance >
unsigned UseCount () const
void Retain () const
void Release () const

Friends

class Context

Additional Inherited Members

Protected Member Functions inherited from llvm::RefCountedBase< WildcardProvenance >
 RefCountedBase ()=default
RefCountedBase & operator= (const RefCountedBase &)=delete
 ~RefCountedBase ()

Detailed Description

A set of previously exposed provenances.

It is originally yielded by inttoptr, and shared by pointers derived from the result.

Each capability check may invalidate some provenances. If we cannot pick one, it is UB. That is, from the angelic non-determinism view, we cannot pick a provenance to make the program reach this point.

For efficiency, this class has different forms in two stages:

  1. Before any memory access is performed, ActiveMask is set to zero and Generation represents the global generation number of the snapshot.
  2. After a memory access is performed, we can determine exactly one memory object to be accessed (address ranges are distinct). In this case, BaseAddress is set and ActiveMask is non-zero. ActiveMask represents the validity of the first N exposed provenances associated with the memory object. The bitwidth N is the number of provenances in the list with List[I].Generation <= WildcardProvenance::Generation (The generation field in the list is monotonically increasing). That is, we can only access through exposed provenances before inttoptr executes. Note that if ActiveMask becomes zero again, UB must be triggered.

Definition at line 163 of file Value.h.

Constructor & Destructor Documentation

◆ WildcardProvenance()

llvm::ubi::WildcardProvenance::WildcardProvenance ( uint64_t Generation)
inlineexplicit

Definition at line 173 of file Value.h.

References Generation, and uint64_t.

◆ Context

friend class Context
friend

Definition at line 170 of file Value.h.

References Context.

Referenced by Context.

Member Data Documentation

◆ BaseAddress

uint64_t llvm::ubi::WildcardProvenance::BaseAddress

Definition at line 167 of file Value.h.

◆ Generation

uint64_t llvm::ubi::WildcardProvenance::Generation

Definition at line 166 of file Value.h.

Referenced by WildcardProvenance().


The documentation for this class was generated from the following file: