clang 17.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::dataflow::BiconditionalValue Class Reference

Models a boolean biconditional. More...

#include "clang/Analysis/FlowSensitive/Value.h"

Inheritance diagram for clang::dataflow::BiconditionalValue:
Inheritance graph
[legend]
Collaboration diagram for clang::dataflow::BiconditionalValue:
Collaboration graph
[legend]

Public Member Functions

 BiconditionalValue (BoolValue &LeftSubVal, BoolValue &RightSubVal)
 
BoolValuegetLeftSubValue () const
 Returns the left sub-value of the biconditional.
 
BoolValuegetRightSubValue () const
 Returns the right sub-value of the biconditional.
 
- Public Member Functions inherited from clang::dataflow::BoolValue
 BoolValue (Kind ValueKind)
 
- Public Member Functions inherited from clang::dataflow::Value
 Value (Kind ValKind)
 
 Value (const Value &)=delete
 
Valueoperator= (const Value &)=delete
 
virtual ~Value ()=default
 
Kind getKind () const
 
ValuegetProperty (llvm::StringRef Name) const
 Returns the value of the synthetic property with the given Name or null if the property isn't assigned a value.
 
void setProperty (llvm::StringRef Name, Value &Val)
 Assigns Val as the value of the synthetic property with the given Name.
 

Static Public Member Functions

static bool classof (const Value *Val)
 
- Static Public Member Functions inherited from clang::dataflow::BoolValue
static bool classof (const Value *Val)
 

Additional Inherited Members

- Public Types inherited from clang::dataflow::Value
enum class  Kind {
  Integer , Reference , Pointer , Struct ,
  TopBool , AtomicBool , Conjunction , Disjunction ,
  Negation , Implication , Biconditional
}
 

Detailed Description

Models a boolean biconditional.

Equivalent to (LHS ^ RHS) v (!LHS ^ !RHS).

Definition at line 220 of file Value.h.

Constructor & Destructor Documentation

◆ BiconditionalValue()

clang::dataflow::BiconditionalValue::BiconditionalValue ( BoolValue LeftSubVal,
BoolValue RightSubVal 
)
inlineexplicit

Definition at line 222 of file Value.h.

Member Function Documentation

◆ classof()

static bool clang::dataflow::BiconditionalValue::classof ( const Value Val)
inlinestatic

◆ getLeftSubValue()

BoolValue & clang::dataflow::BiconditionalValue::getLeftSubValue ( ) const
inline

Returns the left sub-value of the biconditional.

Definition at line 231 of file Value.h.

◆ getRightSubValue()

BoolValue & clang::dataflow::BiconditionalValue::getRightSubValue ( ) const
inline

Returns the right sub-value of the biconditional.

Definition at line 234 of file Value.h.


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