21#ifndef GCC_ANALYZER_CHECKER_EVENT_H
22#define GCC_ANALYZER_CHECKER_EVENT_H
521 m_edge_sense (edge_sense)
557 tree apparent_callee_fndecl,
558 tree apparent_caller_fndecl,
560 int stack_depth_adjustment)
563 apparent_caller_fndecl,
564 actual_depth + stack_depth_adjustment)),
565 m_apparent_callee_fndecl (apparent_callee_fndecl),
566 m_apparent_caller_fndecl (apparent_caller_fndecl)
586 const gcall *setjmp_call)
588 m_enode (enode), m_setjmp_call (setjmp_call)
682 m_sm (sm), m_var (var), m_state (
state)
state
Definition cfgbuild.cc:168
Definition checker-event.h:477
void print_desc(pretty_printer &pp) const override
meaning get_meaning() const override
call_event(const exploded_edge &eedge, const event_loc_info &loc_info)
bool is_call_p() const final override
tree get_callee_fndecl() const
const supernode * m_dest_snode
Definition checker-event.h:492
tree get_caller_fndecl() const
const supernode * m_src_snode
Definition checker-event.h:491
Definition supergraph.h:393
Definition checker-event.h:419
meaning get_meaning() const override
cfg_edge_event(enum event_kind kind, const exploded_edge &eedge, const event_loc_info &loc_info)
const cfg_superedge & get_cfg_superedge() const
Definition supergraph.h:515
Definition checker-event.h:89
virtual void prepare_for_emission(checker_path *, pending_diagnostic *pd, diagnostic_event_id_t emission_id)
checker_event(enum event_kind kind, const event_loc_info &loc_info)
virtual bool is_return_p() const
Definition checker-event.h:122
tree m_effective_fndecl
Definition checker-event.h:144
diagnostic_event_id_t m_emission_id
Definition checker-event.h:148
int get_stack_depth() const final override
Definition checker-event.h:94
location_t m_loc
Definition checker-event.h:142
const diagnostic_event_id_t * get_id_ptr() const
Definition checker-event.h:125
enum event_kind m_kind
Definition checker-event.h:140
tree m_original_fndecl
Definition checker-event.h:143
virtual bool is_function_entry_p() const
Definition checker-event.h:121
const logical_location * get_logical_location() const final override
Definition checker-event.h:95
tree_logical_location m_logical_loc
Definition checker-event.h:149
void set_location(location_t loc)
Definition checker-event.h:133
pending_diagnostic * m_pending_diagnostic
Definition checker-event.h:147
bool connect_to_next_event_p() const override
Definition checker-event.h:103
int get_original_stack_depth() const
Definition checker-event.h:115
location_t get_location() const final override
Definition checker-event.h:93
void maybe_add_sarif_properties(sarif_object &thread_flow_loc_obj) const override
virtual bool is_call_p() const
Definition checker-event.h:120
tree get_fndecl() const
Definition checker-event.h:113
int m_effective_depth
Definition checker-event.h:146
int m_original_depth
Definition checker-event.h:145
diagnostic_thread_id_t get_thread_id() const final override
Definition checker-event.h:104
meaning get_meaning() const override
void dump(pretty_printer *pp) const
Definition checker-path.h:32
Definition checker-event.h:180
custom_event(const event_loc_info &loc_info)
Definition checker-event.h:182
Definition checker-event.h:156
char * m_desc
Definition checker-event.h:173
~debug_event()
Definition checker-event.h:165
debug_event(const event_loc_info &loc_info, const char *desc)
Definition checker-event.h:159
void print_desc(pretty_printer &) const final override
Definition checker-event.h:460
end_cfg_edge_event(const exploded_edge &eedge, const event_loc_info &loc_info)
Definition checker-event.h:462
void print_desc(pretty_printer &pp) const final override
Definition checker-event.h:468
Definition checker-event.h:537
end_consolidated_cfg_edges_event(const event_loc_info &loc_info)
Definition checker-event.h:539
void print_desc(pretty_printer &pp) const final override
Definition checker-event.h:544
Definition exploded-graph.h:381
Definition exploded-graph.h:203
Definition checker-event.h:329
function_entry_event(const program_point &dst_point)
meaning get_meaning() const override
bool is_function_entry_p() const final override
Definition checker-event.h:341
void print_desc(pretty_printer &pp) const override
function_entry_event(const event_loc_info &loc_info)
Definition checker-event.h:331
Definition checker-event.h:554
meaning get_meaning() const override
void print_desc(pretty_printer &) const final override
inlined_call_event(location_t loc, tree apparent_callee_fndecl, tree apparent_caller_fndecl, int actual_depth, int stack_depth_adjustment)
Definition checker-event.h:556
tree m_apparent_callee_fndecl
Definition checker-event.h:575
tree m_apparent_caller_fndecl
Definition checker-event.h:576
Definition pending-diagnostic.h:190
Definition checker-event.h:191
~precanned_custom_event()
Definition checker-event.h:199
char * m_desc
Definition checker-event.h:207
void print_desc(pretty_printer &) const final override
precanned_custom_event(const event_loc_info &loc_info, const char *desc)
Definition checker-event.h:193
Definition program-point.h:175
Definition program-state.h:209
const function * get_current_function() const
Definition checker-event.h:292
tree m_capacity
Definition checker-event.h:303
void print_desc(pretty_printer &pp) const final override
region_creation_event_allocation_size(tree capacity, const event_loc_info &loc_info)
Definition checker-event.h:294
Definition checker-event.h:271
void print_desc(pretty_printer &pp) const final override
region_creation_event_capacity(tree capacity, const event_loc_info &loc_info)
Definition checker-event.h:273
tree m_capacity
Definition checker-event.h:284
Definition checker-event.h:310
region_creation_event_debug(const region *reg, tree capacity, const event_loc_info &loc_info)
Definition checker-event.h:312
tree m_capacity
Definition checker-event.h:323
const region * m_reg
Definition checker-event.h:322
void print_desc(pretty_printer &pp) const final override
Definition checker-event.h:251
enum memory_space m_mem_space
Definition checker-event.h:263
void print_desc(pretty_printer &pp) const final override
region_creation_event_memory_space(enum memory_space mem_space, const event_loc_info &loc_info)
Definition checker-event.h:253
Definition checker-event.h:241
region_creation_event(const event_loc_info &loc_info)
Definition checker-event.h:498
return_event(const exploded_edge &eedge, const event_loc_info &loc_info)
void print_desc(pretty_printer &pp) const final override
bool is_return_p() const final override
meaning get_meaning() const override
Definition checker-event.h:610
tree get_longjmp_caller() const
rewind_event(const exploded_edge *eedge, enum event_kind kind, const event_loc_info &loc_info, const rewind_info_t *rewind_info)
tree get_setjmp_caller() const
const exploded_edge * m_eedge
Definition checker-event.h:624
const rewind_info_t * m_rewind_info
Definition checker-event.h:621
const exploded_edge * get_eedge() const
Definition checker-event.h:614
Definition checker-event.h:631
rewind_from_longjmp_event(const exploded_edge *eedge, const event_loc_info &loc_info, const rewind_info_t *rewind_info)
Definition checker-event.h:633
void print_desc(pretty_printer &pp) const final override
Definition exploded-graph.h:457
Definition checker-event.h:648
void prepare_for_emission(checker_path *path, pending_diagnostic *pd, diagnostic_event_id_t emission_id) final override
rewind_to_setjmp_event(const exploded_edge *eedge, const event_loc_info &loc_info, const rewind_info_t *rewind_info)
Definition checker-event.h:650
void print_desc(pretty_printer &pp) const final override
diagnostic_event_id_t m_original_setjmp_event_id
Definition checker-event.h:665
Definition checker-event.h:582
void print_desc(pretty_printer &pp) const final override
setjmp_event(const event_loc_info &loc_info, const exploded_node *enode, const gcall *setjmp_call)
Definition checker-event.h:584
const gcall * m_setjmp_call
Definition checker-event.h:600
void prepare_for_emission(checker_path *path, pending_diagnostic *pd, diagnostic_event_id_t emission_id) final override
const exploded_node * m_enode
Definition checker-event.h:599
Definition checker-event.h:434
bool connect_to_next_event_p() const final override
Definition checker-event.h:443
void print_desc(pretty_printer &pp) const override
static label_text maybe_describe_condition(bool can_colorize, tree lhs, enum tree_code op, tree rhs)
start_cfg_edge_event(const exploded_edge &eedge, const event_loc_info &loc_info)
Definition checker-event.h:436
label_text maybe_describe_condition(bool can_colorize) const
static bool should_print_expr_p(tree)
Definition checker-event.h:516
bool connect_to_next_event_p() const final override
Definition checker-event.h:527
meaning get_meaning() const override
start_consolidated_cfg_edges_event(const event_loc_info &loc_info, bool edge_sense)
Definition checker-event.h:518
bool m_edge_sense
Definition checker-event.h:530
void print_desc(pretty_printer &pp) const final override
Definition checker-event.h:347
state_machine::state_t m_to
Definition checker-event.h:374
state_machine::state_t m_from
Definition checker-event.h:373
void print_desc(pretty_printer &pp) const final override
const svalue * m_origin
Definition checker-event.h:375
state_change_event(const supernode *node, const gimple *stmt, int stack_depth, const state_machine &sm, const svalue *sval, state_machine::state_t from, state_machine::state_t to, const svalue *origin, const program_state &dst_state, const exploded_node *enode)
const exploded_node * get_exploded_node() const
Definition checker-event.h:367
meaning get_meaning() const override
const supernode * m_node
Definition checker-event.h:369
program_state m_dst_state
Definition checker-event.h:376
const state_machine & m_sm
Definition checker-event.h:371
const svalue * m_sval
Definition checker-event.h:372
const exploded_node * m_enode
Definition checker-event.h:377
const gimple * m_stmt
Definition checker-event.h:370
const function * get_dest_function() const
Definition checker-event.h:362
Definition checker-event.h:214
statement_event(const gimple *stmt, tree fndecl, int depth, const program_state &dst_state)
void print_desc(pretty_printer &) const final override
const gimple *const m_stmt
Definition checker-event.h:221
const program_state m_dst_state
Definition checker-event.h:222
Definition checker-event.h:384
state_machine::state_t m_critical_state
Definition checker-event.h:411
superedge_event(enum event_kind kind, const exploded_edge &eedge, const event_loc_info &loc_info)
const callgraph_superedge & get_callgraph_superedge() const
tree m_var
Definition checker-event.h:410
const exploded_edge & m_eedge
Definition checker-event.h:408
bool should_filter_p(int verbosity) const
void record_critical_state(tree var, state_machine::state_t state)
Definition checker-event.h:393
void maybe_add_sarif_properties(sarif_object &thread_flow_loc_obj) const override
const superedge * m_sedge
Definition checker-event.h:409
Definition supergraph.h:314
Definition supergraph.h:235
Definition checker-event.h:674
tree m_var
Definition checker-event.h:694
const exploded_node * get_exploded_node() const
Definition checker-event.h:689
const state_machine * m_sm
Definition checker-event.h:693
meaning get_meaning() const override
const exploded_node * m_enode
Definition checker-event.h:692
void print_desc(pretty_printer &pp) const final override
state_machine::state_t m_state
Definition checker-event.h:695
warning_event(const event_loc_info &loc_info, const exploded_node *enode, const state_machine *sm, tree var, state_machine::state_t state)
Definition checker-event.h:676
Definition diagnostic-event-id.h:37
Definition diagnostic-path.h:70
Definition logical-location.h:55
Definition pretty-print.h:241
Definition diagnostic-format-sarif.h:84
Definition tree-logical-location.h:43
union tree_node * tree
Definition coretypes.h:97
int diagnostic_thread_id_t
Definition diagnostic-event-id.h:70
void final(rtx_insn *first, FILE *file, int optimize_p)
Definition final.cc:2004
tree_code
Definition genmatch.cc:992
Definition access-diagram.h:30
event_kind
Definition checker-event.h:34
@ EK_STATE_CHANGE
Definition checker-event.h:40
@ EK_END_CONSOLIDATED_CFG_EDGES
Definition checker-event.h:46
@ EK_REWIND_TO_SETJMP
Definition checker-event.h:50
@ EK_SETJMP
Definition checker-event.h:48
@ EK_WARNING
Definition checker-event.h:51
@ EK_STMT
Definition checker-event.h:37
@ EK_CALL_EDGE
Definition checker-event.h:43
@ EK_FUNCTION_ENTRY
Definition checker-event.h:39
@ EK_CUSTOM
Definition checker-event.h:36
@ EK_START_CONSOLIDATED_CFG_EDGES
Definition checker-event.h:45
@ EK_START_CFG_EDGE
Definition checker-event.h:41
@ EK_DEBUG
Definition checker-event.h:35
@ EK_REWIND_FROM_LONGJMP
Definition checker-event.h:49
@ EK_RETURN_EDGE
Definition checker-event.h:44
@ EK_INLINED_CALL
Definition checker-event.h:47
@ EK_REGION_CREATION
Definition checker-event.h:38
@ EK_END_CFG_EDGE
Definition checker-event.h:42
const char * event_kind_to_string(enum event_kind ek)
memory_space
Definition region.h:32
void pp_string(pretty_printer *pp, const char *str)
Definition pretty-print.cc:2653
Definition event-loc-info.h:29
Definition diagnostic-path.h:114
Definition function.h:249
Definition genautomata.cc:669
#define NULL
Definition system.h:50
#define gcc_assert(EXPR)
Definition system.h:814