cprover
goto_trace_stept Class Reference

TO_BE_DOCUMENTED. More...

#include <goto_trace.h>

Collaboration diagram for goto_trace_stept:
[legend]

Public Types

enum  typet {
  typet::NONE, typet::ASSIGNMENT, typet::ASSUME, typet::ASSERT,
  typet::GOTO, typet::LOCATION, typet::INPUT, typet::OUTPUT,
  typet::DECL, typet::DEAD, typet::FUNCTION_CALL, typet::FUNCTION_RETURN,
  typet::CONSTRAINT, typet::SHARED_READ, typet::SHARED_WRITE, typet::SPAWN,
  typet::MEMORY_BARRIER, typet::ATOMIC_BEGIN, typet::ATOMIC_END
}
 
enum  assignment_typet { assignment_typet::STATE, assignment_typet::ACTUAL_PARAMETER }
 
typedef std::list< exprtio_argst
 

Public Member Functions

bool is_assignment () const
 
bool is_assume () const
 
bool is_assert () const
 
bool is_goto () const
 
bool is_constraint () const
 
bool is_function_call () const
 
bool is_function_return () const
 
bool is_location () const
 
bool is_output () const
 
bool is_input () const
 
bool is_decl () const
 
bool is_dead () const
 
bool is_shared_read () const
 
bool is_shared_write () const
 
bool is_spawn () const
 
bool is_memory_barrier () const
 
bool is_atomic_begin () const
 
bool is_atomic_end () const
 
void output (const class namespacet &ns, std::ostream &out) const
 outputs the trace step in ASCII to a given stream More...
 
 goto_trace_stept ()
 

Public Attributes

std::size_t step_nr
 
typet type
 
bool hidden
 
bool internal
 
assignment_typet assignment_type
 
goto_programt::const_targett pc
 
unsigned thread_nr
 
bool cond_value
 
exprt cond_expr
 
std::string comment
 
ssa_exprt lhs_object
 
exprt full_lhs
 
exprt lhs_object_value
 
exprt full_lhs_value
 
irep_idt format_string
 
irep_idt io_id
 
io_argst io_args
 
bool formatted
 
irep_idt identifier
 

Detailed Description

TO_BE_DOCUMENTED.

Definition at line 36 of file goto_trace.h.

Member Typedef Documentation

◆ io_argst

typedef std::list<exprt> goto_trace_stept::io_argst

Definition at line 118 of file goto_trace.h.

Member Enumeration Documentation

◆ assignment_typet

Enumerator
STATE 
ACTUAL_PARAMETER 

Definition at line 92 of file goto_trace.h.

◆ typet

Enumerator
NONE 
ASSIGNMENT 
ASSUME 
ASSERT 
GOTO 
LOCATION 
INPUT 
OUTPUT 
DECL 
DEAD 
FUNCTION_CALL 
FUNCTION_RETURN 
CONSTRAINT 
SHARED_READ 
SHARED_WRITE 
SPAWN 
MEMORY_BARRIER 
ATOMIC_BEGIN 
ATOMIC_END 

Definition at line 60 of file goto_trace.h.

Constructor & Destructor Documentation

◆ goto_trace_stept()

goto_trace_stept::goto_trace_stept ( )
inline

Member Function Documentation

◆ is_assert()

bool goto_trace_stept::is_assert ( ) const
inline

Definition at line 43 of file goto_trace.h.

References ASSERT, and type.

Referenced by output().

◆ is_assignment()

bool goto_trace_stept::is_assignment ( ) const
inline

Definition at line 41 of file goto_trace.h.

References ASSIGNMENT, and type.

Referenced by output().

◆ is_assume()

bool goto_trace_stept::is_assume ( ) const
inline

Definition at line 42 of file goto_trace.h.

References ASSUME, and type.

Referenced by output().

◆ is_atomic_begin()

bool goto_trace_stept::is_atomic_begin ( ) const
inline

Definition at line 57 of file goto_trace.h.

References ATOMIC_BEGIN, and type.

◆ is_atomic_end()

bool goto_trace_stept::is_atomic_end ( ) const
inline

Definition at line 58 of file goto_trace.h.

References ATOMIC_END, and type.

◆ is_constraint()

bool goto_trace_stept::is_constraint ( ) const
inline

Definition at line 45 of file goto_trace.h.

References CONSTRAINT, and type.

◆ is_dead()

bool goto_trace_stept::is_dead ( ) const
inline

Definition at line 52 of file goto_trace.h.

References DEAD, and type.

◆ is_decl()

bool goto_trace_stept::is_decl ( ) const
inline

Definition at line 51 of file goto_trace.h.

References DECL, and type.

◆ is_function_call()

bool goto_trace_stept::is_function_call ( ) const
inline

Definition at line 46 of file goto_trace.h.

References FUNCTION_CALL, and type.

Referenced by output().

◆ is_function_return()

bool goto_trace_stept::is_function_return ( ) const
inline

Definition at line 47 of file goto_trace.h.

References FUNCTION_RETURN, and type.

Referenced by output().

◆ is_goto()

bool goto_trace_stept::is_goto ( ) const
inline

Definition at line 44 of file goto_trace.h.

References GOTO, and type.

Referenced by output().

◆ is_input()

bool goto_trace_stept::is_input ( ) const
inline

Definition at line 50 of file goto_trace.h.

References INPUT, and type.

◆ is_location()

bool goto_trace_stept::is_location ( ) const
inline

Definition at line 48 of file goto_trace.h.

References LOCATION, and type.

◆ is_memory_barrier()

bool goto_trace_stept::is_memory_barrier ( ) const
inline

Definition at line 56 of file goto_trace.h.

References MEMORY_BARRIER, and type.

◆ is_output()

bool goto_trace_stept::is_output ( ) const
inline

Definition at line 49 of file goto_trace.h.

References OUTPUT, and type.

◆ is_shared_read()

bool goto_trace_stept::is_shared_read ( ) const
inline

Definition at line 53 of file goto_trace.h.

References SHARED_READ, and type.

◆ is_shared_write()

bool goto_trace_stept::is_shared_write ( ) const
inline

Definition at line 54 of file goto_trace.h.

References SHARED_WRITE, and type.

◆ is_spawn()

bool goto_trace_stept::is_spawn ( ) const
inline

Definition at line 55 of file goto_trace.h.

References SPAWN, and type.

◆ output()

void goto_trace_stept::output ( const class namespacet ns,
std::ostream &  out 
) const

Member Data Documentation

◆ assignment_type

assignment_typet goto_trace_stept::assignment_type

Definition at line 93 of file goto_trace.h.

Referenced by build_goto_trace(), and convert_decl().

◆ comment

std::string goto_trace_stept::comment

Definition at line 105 of file goto_trace.h.

Referenced by build_goto_trace(), convert_assert(), and output().

◆ cond_expr

exprt goto_trace_stept::cond_expr

Definition at line 102 of file goto_trace.h.

Referenced by build_goto_trace(), and goto_trace_stept().

◆ cond_value

bool goto_trace_stept::cond_value

Definition at line 101 of file goto_trace.h.

Referenced by build_goto_trace(), and output().

◆ format_string

irep_idt goto_trace_stept::format_string

Definition at line 117 of file goto_trace.h.

Referenced by build_goto_trace().

◆ formatted

bool goto_trace_stept::formatted

Definition at line 120 of file goto_trace.h.

Referenced by build_goto_trace().

◆ full_lhs

exprt goto_trace_stept::full_lhs

◆ full_lhs_value

exprt goto_trace_stept::full_lhs_value

◆ hidden

bool goto_trace_stept::hidden

◆ identifier

irep_idt goto_trace_stept::identifier

◆ internal

◆ io_args

io_argst goto_trace_stept::io_args

Definition at line 119 of file goto_trace.h.

Referenced by build_goto_trace(), convert_input(), and convert_output().

◆ io_id

irep_idt goto_trace_stept::io_id

Definition at line 117 of file goto_trace.h.

Referenced by build_goto_trace(), convert_input(), and convert_output().

◆ lhs_object

ssa_exprt goto_trace_stept::lhs_object

◆ lhs_object_value

exprt goto_trace_stept::lhs_object_value

Definition at line 114 of file goto_trace.h.

Referenced by build_goto_trace(), interpretert::execute_assign(), and goto_trace_stept().

◆ pc

◆ step_nr

std::size_t goto_trace_stept::step_nr

Definition at line 39 of file goto_trace.h.

Referenced by build_goto_trace().

◆ thread_nr

◆ type


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