GCC Middle and Back End API Reference
ana Namespace Reference

Namespaces

namespace  concrete
namespace  evdesc
namespace  symbolic
namespace  units

Data Structures

class  access_diagram
struct  access_operation
class  alloca_region
class  analysis_plan
class  analyzer_state_graph
class  annotating_context
class  asm_output_svalue
class  bar_chart
class  base_feasible_edge
class  base_feasible_node
class  binding_cluster
class  binop_svalue
struct  bit_range
class  bit_range_region
class  bit_size_expr
struct  bound
struct  bounded_range
struct  bounded_ranges
class  bounded_ranges_constraint
class  bounded_ranges_manager
class  builtin_known_function
struct  byte_range
class  call_and_return_op
struct  call_arg_details
class  call_details
class  call_event
class  call_info
class  call_string
class  call_summary
class  call_summary_replay
class  callsite_expr
class  callsite_expr_element
class  cast_region
class  catch_cfg_edge_event
class  cfg_edge_event
class  checker_event
class  checker_path
class  cluster_region
struct  complexity
class  conjured_purge
class  const_fn_result_svalue
class  constant_svalue
class  constraint
class  constraint_manager
class  control_flow_op
struct  critical_state
class  custom_edge_info
class  custom_event
class  custom_transition
class  cxa_throw_op
class  debug_event
class  decl_region
class  diagnostic_emission_context
class  diagnostic_manager
struct  diagnostic_state
class  dot_annotator
class  dump_op
struct  eg_hash_map_traits
struct  eg_point_hash_map_traits
struct  eg_traits
class  eh_dispatch_allowed_edge_op
class  eh_dispatch_edge_op
class  eh_dispatch_try_edge_op
class  element_region
class  end_cfg_edge_event
class  end_consolidated_cfg_edges_event
class  engine
class  equiv_class
class  equiv_class_id
class  errno_region
struct  event_loc_info
struct  exception_node
class  explicit_throw_event
class  exploded_edge
class  exploded_graph
class  exploded_node
class  exploded_path
class  extrinsic_state
class  fact_visitor
class  failed_call_info
class  feasibility_problem
class  feasibility_state
class  feasible_cluster
class  feasible_edge
class  feasible_graph
class  feasible_node
struct  fg_traits
class  field_region
class  format
class  frame_region
class  function_entry_event
class  function_region
class  function_set
class  gasm_op
class  gassign_op
class  gcond_edge_op
class  ggoto_edge_op
class  gimple_stmt_op
class  greturn_op
class  heap_allocated_region
struct  hexdump_options
class  impl_region_model_context
class  impl_sm_context
class  infeasible_edge
class  infeasible_node
class  initial_svalue
class  inlined_call_event
class  integer
class  integer_with_unit
struct  interesting_t
class  internal_known_function
class  interprocedural_call
class  interprocedural_return
class  known_function
class  known_function_manager
class  label_region
class  log_nesting_level
class  log_scope
class  log_user
class  logger
class  longjmp_op
class  memory_space_region
struct  model_merger
class  noop_region_model_context
class  offset_region
class  one_way_id_map
class  operation
struct  operation_context
class  path_context
class  path_var
class  pending_diagnostic
class  pending_diagnostic_subclass
struct  pending_location
class  pending_note
class  pending_note_subclass
struct  per_call_string_data
struct  per_function_data
struct  per_program_point_data
class  phis_for_edge_op
class  placeholder_svalue
class  point_and_state
class  pointer_svalue
struct  poison_finder
class  poisoned_svalue
class  pp_element_integer
class  precanned_custom_event
class  predict_op
class  private_region
class  program_point
class  program_state
class  pure_known_function_with_default_return
struct  purge_stats
class  range
class  reachability
class  reachable_regions
class  record_layout
class  region
class  region_creation_event
class  region_creation_event_allocation_size
class  region_creation_event_capacity
class  region_creation_event_debug
class  region_creation_event_memory_space
class  region_model
class  region_model_context
class  region_model_context_decorator
class  region_model_manager
class  region_to_value_map
class  rejected_constraint
class  rejected_default_case
class  rejected_op_constraint
class  rejected_ranges_constraint
class  resx_op
class  return_event
struct  rewind_context
class  rewind_event
class  rewind_from_longjmp_event
class  rewind_info_t
class  rewind_to_setjmp_event
class  root_region
class  saved_diagnostic
class  saved_uids
class  setjmp_event
class  setjmp_op
struct  setjmp_record
class  setjmp_svalue
class  sized_region
class  sm_context
class  sm_state_map
class  start_cfg_edge_event
class  start_consolidated_cfg_edges_event
class  state_change_event
class  state_change_visitor
class  state_machine
class  state_purge_annotator
class  state_purge_map
class  state_purge_per_decl
class  state_purge_per_ssa_name
class  state_purge_per_tree
class  state_transition
class  state_transition_at_call
class  state_transition_at_return
class  state_transition_copy
class  state_transition_event
class  state_transition_origin
class  state_transition_use
class  statement_event
struct  stats
class  store
class  string_region
struct  string_scan
class  strongly_connected_components
class  succeed_or_fail_call_info
class  success_call_info
class  superedge
class  superedge_event
class  supergraph
struct  supergraph_traits
class  supernode
class  svalue
class  svalue_from_bit_vector
class  switch_case_op
class  symbolic_region
class  tentative_region_model_context
struct  tg_traits
class  throw_event
class  throw_from_call_to_external_fn_event
class  trimmed_cluster
class  trimmed_edge
class  trimmed_graph
class  trimmed_node
class  type
class  unaryop_svalue
class  uncertainty_t
class  unknown_region
class  unknown_svalue
class  unmergeable_svalue
class  unwind_event
class  var_arg_region
class  visitor
class  warning_event
class  widening_svalue
class  worklist

Typedefs

using symbolic_bit_range = symbolic::range<integer_with_unit<units::bit>>
using symbolic_byte_range = symbolic::range<integer_with_unit<units::byte>>
typedef offset_int bit_offset_t
typedef offset_int bit_size_t
typedef offset_int byte_offset_t
typedef offset_int byte_size_t
using concrete_bit_range = concrete::range<integer_with_unit<units::bit>>
using concrete_byte_range = concrete::range<integer_with_unit<units::byte>>
typedef shortest_paths< eg_traits, exploded_path > shortest_exploded_paths
using concrete_bit_size = integer_with_unit<units::bit>
using concrete_bit_offset = integer_with_unit<units::bit>
using concrete_byte_size = integer_with_unit<units::byte>
using concrete_byte_offset = integer_with_unit<units::byte>
using concrete_integer = integer
using concrete_tristate_vector = std::vector<tristate>
using value_set = symbolic::node_set<symbolic::value_node>
using symbolic_integer = symbolic::scalar<integer>
using symbolic_bit_offset = symbolic::scalar<integer_with_unit<units::bit>>
using symbolic_bit_size = symbolic::scalar<integer_with_unit<units::bit>>
using symbolic_byte_offset = symbolic::scalar<integer_with_unit<units::byte>>
using symbolic_byte_size = symbolic::scalar<integer_with_unit<units::byte>>

Enumerations

enum class  event_kind {
  debug , custom , stmt , region_creation ,
  state_transition , function_entry , state_change , start_cfg_edge ,
  end_cfg_edge , catch_ , call_ , return_ ,
  start_consolidated_cfg_edges , end_consolidated_cfg_edges , inlined_call , setjmp_ ,
  rewind_from_longjmp , rewind_to_setjmp , throw_ , unwind ,
  warning
}
enum class  access_direction { read , write }
enum class  poison_kind {
  uninit , freed , deleted , popped_stack ,
  other
}
enum class  baseline_state { main , after_main }
enum class  iter_result { keep_going , stop }
enum class  bound_kind { lower , upper }
enum  constraint_op { CONSTRAINT_NE , CONSTRAINT_LT , CONSTRAINT_LE }
enum class  memory_space {
  unknown , code , globals , stack ,
  heap , read_only_data , thread_local_ , private_
}
enum  region_kind {
  RK_FRAME , RK_MEMORY_SPACE , RK_FUNCTION , RK_LABEL ,
  RK_ROOT , RK_SYMBOLIC , RK_DECL , RK_FIELD ,
  RK_ELEMENT , RK_OFFSET , RK_SIZED , RK_CAST ,
  RK_HEAP_ALLOCATED , RK_ALLOCA , RK_STRING , RK_BIT_RANGE ,
  RK_VAR_ARG , RK_ERRNO , RK_PRIVATE , RK_UNKNOWN
}
enum  supergraph_dot_flags { SUPERGRAPH_DOT_SHOW_BBS = (1 << 0) }
enum  svalue_kind {
  SK_POINTER , SK_CONSTANT , SK_UNKNOWN , SK_POISONED ,
  SK_SETJMP , SK_INITIAL , SK_UNARYOP , SK_BINOP ,
  SK_BIT_VECTOR , SK_UNMERGEABLE , SK_PLACEHOLDER , SK_WIDENING ,
  SK_ASM_OUTPUT , SK_CONST_FN_RESULT
}

Functions

const char * event_kind_to_string (enum event_kind ek)
void dump_tree (pretty_printer *pp, tree t)
void dump_quoted_tree (pretty_printer *pp, tree t)
void print_quoted_type (pretty_printer *pp, tree t)
void print_expr_for_user (pretty_printer *pp, tree t)
bool printable_expr_p (const_tree expr)
int readability_comparator (const void *p1, const void *p2)
int tree_cmp (const void *p1, const void *p2)
int cmp_types (const_tree a, const_tree b)
tree fixup_tree_for_diagnostic (tree)
tree get_diagnostic_tree_for_gassign (const gassign *)
bool useful_location_p (location_t loc)
bool int_size_in_bits (const_tree type, bit_size_t *out)
bool compare_bit_offsets_p (bit_offset_t a, enum tree_code op, bit_offset_t b)
int cmp_csts_and_types (const_tree cst1, const_tree cst2)
location_t get_stmt_location (const gimple *stmt, function *fun)
bool compat_types_p (tree src_type, tree dst_type)
void register_known_functions (known_function_manager &kfm, region_model_manager &rmm)
void register_known_analyzer_functions (known_function_manager &kfm)
void register_known_fd_functions (known_function_manager &kfm)
void register_known_file_functions (known_function_manager &kfm)
void register_known_functions_lang_cp (known_function_manager &kfm)
void register_varargs_builtins (known_function_manager &kfm)
tree get_stashed_constant_by_name (const char *name)
void log_stashed_constants (logger *logger)
FILE * get_or_create_any_logfile ()
std::unique_ptr< json::value > tree_to_json (tree node)
std::unique_ptr< json::value > diagnostic_event_id_to_json (const diagnostics::paths::event_id_t &)
std::unique_ptr< json::value > bit_offset_to_json (const bit_offset_t &offset)
std::unique_ptr< json::value > byte_offset_to_json (const byte_offset_t &offset)
tristate compare_constants (tree lhs_const, enum tree_code op, tree rhs_const)
tree get_string_cst_size (const_tree string_cst)
tree get_ssa_default_def (const function &fun, tree var)
const svalue * strip_types (const svalue *sval, region_model_manager &mgr)
tree remove_ssa_names (tree expr)
const char * poison_kind_to_str (enum poison_kindpoison_kind)
const char * baseline_state_to_str (baseline_state)
void append_pathvar_with_type (path_var pv, tree type, auto_vec< path_var > *out_pvs)
concrete_bit_range bits_from_bytes (concrete_byte_range bytes)
bool maybe_bytes_from_bits (concrete_bit_range bits, concrete_byte_range *out)
bool concrete_bit_range_from_mask (unsigned HOST_WIDE_INT mask, concrete_bit_range *out)
void get_smallest_enclosing_byte_range (const concrete_bit_range &in_bit_range, concrete_byte_range *out_byte_range, concrete_bit_offset *out_bit_offset)
const char * constraint_op_code (enum constraint_op c_op)
std::unique_ptr< pending_location::fixer_for_epath > make_ploc_fixer_for_epath_for_leak_diagnostic (const exploded_graph &eg, tree var)
void run_checkers ()
event_loc_info event_loc_info_for_function_entry (const program_point &point, const state_transition_at_call *state_trans)
integer_with_unit< units::bit > operator""_bit (unsigned long long v)
integer_with_unit< units::bit > operator""_bits (unsigned long long v)
integer_with_unit< units::byte > operator""_byte (unsigned long long v)
integer_with_unit< units::byte > operator""_bytes (unsigned long long v)
integer_with_unit< units::bit > bits_from_bytes (integer_with_unit< units::byte > bytes)
bool maybe_bytes_from_bits (integer_with_unit< units::bit > bits, integer_with_unit< units::byte > *out)
template<typename Unit>
bool operator== (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
template<typename Unit>
bool operator!= (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
bool operator== (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
bool operator== (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
bool operator!= (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
bool operator!= (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > operator+ (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
integer_with_unit< units::bit > operator+ (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
integer_with_unit< units::bit > operator+ (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > operator- (const integer_with_unit< Unit > &i)
template<typename Unit>
integer_with_unit< Unit > operator- (const integer_with_unit< Unit > &lhs, const integer_with_unit< Unit > &rhs)
integer_with_unit< units::bit > operator- (const integer_with_unit< units::bit > &lhs, const integer_with_unit< units::byte > &rhs)
integer_with_unit< units::bit > operator- (const integer_with_unit< units::byte > &lhs, const integer_with_unit< units::bit > &rhs)
template<typename Unit>
integer_with_unit< Unit > operator* (const integer_with_unit< Unit > &lhs, const integer &rhs)
template<typename Unit>
integer_with_unit< Unit > operator* (const integer &lhs, const integer_with_unit< Unit > &rhs)
concrete_byte_offset round_bit_to_lowest_byte (concrete_bit_offset bit_offset)
concrete_bit_offset bit_within_byte (concrete_bit_offset bit_offset)
bool get_type_size (const_tree type, concrete_bit_size *out)
concrete_bit_offset convert_from_bit_offset_t (bit_offset_t)
concrete_bit_size convert_from_bit_size_t (bit_size_t)
integer_with_unit< units::byte > convert_from_byte_offset_t (byte_offset_t)
integer_with_unit< units::byte > convert_from_byte_size_t (byte_size_t)
bit_offset_t convert_to_bit_offset_t (concrete_bit_offset)
bit_size_t convert_to_bit_size_t (concrete_bit_size)
byte_offset_t convert_to_byte_offset_t (concrete_byte_offset)
byte_size_t convert_to_byte_size_t (concrete_byte_size)
template<typename ConcreteValueType>
bool eval_comparison_p (ConcreteValueType a, enum tree_code op, ConcreteValueType b)
integer convert_from_integer_cst (const_tree int_cst)
tree make_integer_cst_from_integer (tree type, const integer &value, bool wrap)
std::unique_ptr< known_function > make_kf_strlen ()
bool for_each_state_change (const program_state &src_state, const program_state &dst_state, const extrinsic_state &ext_state, state_change_visitor *visitor)
concrete_bit_offset get_bit_position (const_tree field)
tree get_field_at_bit_offset (tree record_type, concrete_bit_offset bit_offset)
std::unique_ptr< pending_diagnostic > make_poisoned_value_diagnostic (tree expr, enum poison_kind pkind, const region *src_region, tree check_expr)
std::unique_ptr< pending_diagnostic > make_shift_count_negative_diagnostic (const gassign *assign, tree count_cst, const region *src_region)
std::unique_ptr< pending_diagnostic > make_shift_count_overflow_diagnostic (const gassign *assign, int operand_precision, tree count_cst, const region *src_region)
std::unique_ptr< pending_diagnostic > make_write_to_const_diagnostic (const region *dest_reg, tree decl)
std::unique_ptr< pending_diagnostic > make_write_to_string_literal_diagnostic (const region *reg)
const char * get_dump_name (memory_space)
bool any_pointer_p (tree expr)
bool any_pointer_p (const svalue *sval)
std::vector< std::unique_ptr< state_machine > > make_checkers (logger *logger)
std::unique_ptr< state_machine > make_malloc_state_machine (logger *)
std::unique_ptr< state_machine > make_fileptr_state_machine (logger *)
std::unique_ptr< state_machine > make_taint_state_machine (logger *)
std::unique_ptr< state_machine > make_sensitive_state_machine (logger *)
std::unique_ptr< state_machine > make_signal_state_machine (logger *)
std::unique_ptr< state_machine > make_pattern_test_state_machine (logger *)
std::unique_ptr< state_machine > make_va_list_state_machine (logger *)
std::unique_ptr< state_machine > make_fd_state_machine (logger *)
concrete::range< integer_with_unit< units::bit > > convert_from_bit_range (bit_range old_bits)
bit_range convert_to_bit_range (concrete::range< integer_with_unit< units::bit > > new_bits)
symbolic_bit_range bits_from_bytes (const symbolic_byte_range &byte_range)
bool maybe_bytes_from_bits (const symbolic_bit_range &bit_range, symbolic_byte_range *out)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator+ (const symbolic::scalar< ConcreteValueType > &lhs, const symbolic::scalar< ConcreteValueType > &rhs)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator+ (const symbolic::scalar< ConcreteValueType > &lhs, const ConcreteValueType &rhs)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator- (const symbolic::scalar< ConcreteValueType > &i)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator- (const symbolic::scalar< ConcreteValueType > &lhs, const symbolic::scalar< ConcreteValueType > &rhs)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator- (const symbolic::scalar< ConcreteValueType > &lhs, const ConcreteValueType &rhs)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & operator* (const symbolic::scalar< ConcreteValueType > &lhs, const symbolic::scalar< integer > &rhs)
const symbolic_bit_size & bits_from_bytes (const symbolic_byte_size &bytes)
const symbolic_byte_size * maybe_bytes_from_bits (const symbolic_bit_size &bits)
template<typename ConcreteValueType>
bool concrete_from_symbolic (const symbolic::scalar< ConcreteValueType > &in, ConcreteValueType *out)
template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & symbolic_from_concrete (const ConcreteValueType &in, symbolic::scalar_manager< ConcreteValueType > &mgr)

Detailed Description

Text art visualizations within -fanalyzer.
   Copyright (C) 2023-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Creating diagnostic state graphs from ana::program_state.
   Copyright (C) 2025-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A class to encapsulate decisions about how the analysis should happen.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Support for plotting bar charts in dumps.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Helper class for handling a call with specific arguments.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Subclasses of custom_edge_info for describing outcomes of function calls.
   Copyright (C) 2021-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Call stacks at program points.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for working with summaries of function calls.
   Copyright (C) 2022 David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
User-facing descriptions of expressions at call sites.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Subclasses of diagnostics::paths::event for analyzer diagnostics.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Subclass of diagnostics::paths::path for analyzer diagnostics.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Measuring the complexity of symbolic nodes.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Unit-safe concrete ranges of values (e.g. "bits 16-31", "bytes 0-1023").
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Tracking equivalence classes and constraints at a point on an execution path.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for saving, deduplicating, and emitting analyzer diagnostics.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
The analysis "engine".
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A bundle of location information for a checker_event.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for managing a directed graph of <point, state> pairs.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Paths within an exploded_graph.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A graph for exploring trees of feasible paths through the egraph.
   Copyright (C) 2021-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Sets of function names.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Concrete implementation of sm_context.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Unit-safe arbitrary precision integers (e.g. "32 bytes").
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Arbitrary precision integers.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Support for plugin-supplied behaviors of known functions.
   Copyright (C) 2022-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A bundle of information for use when determining if a symbolic::value_node
   is implicitly live.

   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Operations within the code being analyzed.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for analyzer diagnostics.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for representing locations within the program.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for representing the state of interest at a given path of analysis.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Digraph reachability.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Declaration of class record_layout.
   Copyright (C) 2022-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Consolidation of svalues and regions.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Finding reachable regions and values.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Regions of memory.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Modeling API uses and misuses via state machines.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Utility functions for use by state machines.   
Classes for purging state at function_points.
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for tracking pertinent events that happen along
   an execution path.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Classes for modeling the state of memory.
   Copyright (C) 2020-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Implementation of the region-based ternary model described in:
 "A Memory Model for Static Analysis of C Programs"
  (Zhongxing Xu, Ted Kremenek, and Jian Zhang)
 http://lcs.ios.ac.cn/~xuzb/canalyze/memmodel.pdf   
Binding clusters
  ================

  The store models memory as a collection of "clusters", where regions
  are partitioned into clusters via their base region.

  For example, given:
    int a, b, c;
    struct coord { double x; double y; } verts[3];
  then "verts[0].y" and "verts[1].x" both have "verts" as their base region.
  Each of a, b, c, and verts will have their own clusters, so that we
  know that writes to e.g. "verts[1].x".don't affect e.g. "a".

  For each cluster that's been touched by the user's code we track an
  immutable bit_contents instance, updating it to point to a different
  bit_contents instance after each change.

  Handling symbolic regions requires us to handle aliasing.

  In the example above, each of a, b, c and verts are non-symbolic
  base regions and so their clusters are "concrete clusters", whereas given:
      struct coord *p, *q;
  then "*p" and "*q" are symbolic base regions, and thus "*p" and "*q"
  have "symbolic clusters".

  In the above, "verts[i].x" will have a symbolic *binding* within a
  concrete cluster for "verts", whereas "*p" is a symbolic *cluster*.

  Writes to concrete clusters can't affect other concrete clusters,
  but can affect symbolic clusters; e.g. after:
      verts[0].x = 42;
  we bind 42 in the cluster for "verts", but the clusters for "b" and "c"
  can't be affected.  Any symbolic clusters for *p and for *q can be
  affected, *p and *q could alias "verts".

  Writes to a symbolic cluster can affect other clusters, both
  concrete and symbolic; e.g. after:
      p->x = 17;
  we bind 17 within the cluster for "*p".  The concrete clusters for a, b,
  c, and verts could be affected, depending on whether *p aliases them.
  Similarly, the symbolic cluster to *q could be affected.


  Tracking the state within a binding cluster
  ===========================================

  Reads and writes to memory are handled as reading and writing bits to
  a cluster, where the memory ranges relative to the start of the cluster
  can be either fully concrete, or be symbolic (with a symbolic start offset
  and/or size).

  Consider this example (taken from
  gcc/testsuite/c-c++-common/analyzer/symbolic-1.c, adding calls to
  __analyzer_dump (); at the pertinent places):

    char arr[1024];
    arr[2] = a;  (1)
    arr[3] = b;  (2)
      After (1) and (2), we have this state:
        | program_state
        | ╰─ Region Model
        |    ├─ Current Frame: frame: ‘test_1’@1
        |    ╰─ Store
        |       ├─ m_called_unknown_fn: false
        |       ╰─ frame: ‘test_1’@1
        |          ╰─ arr:
        |             ╰─ (616): concrete bit overlay
        |                ├─ concrete ranges
        |                │  ├─ [byte 2]: (605): bit_vector_from_svalue[size: 1 byte]
        |                │  │  ╰─ m_sval: (604): ‘char’: initial_svalue
        |                │  │     ├─ value_range: {[irange] char VARYING}
        |                │  │     ╰─ m_reg: (601): ‘char’: decl_region(‘a_48(D)’)
        |                │  │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │  │           ╰─ parent: (1): memory_space_region (stack)
        |                │  │              ╰─ parent: (0): root region
        |                │  ╰─ [byte 3]: (613): bit_vector_from_svalue[size: 1 byte]
        |                │     ╰─ m_sval: (612): ‘char’: initial_svalue
        |                │        ├─ value_range: {[irange] char VARYING}
        |                │        ╰─ m_reg: (611): ‘char’: decl_region(‘b_50(D)’)
        |                │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │              ╰─ {as above; descendents: 3, depth: 3}
        |                ╰─ baseline: (7): uninitialized contents
      The cluster for "arr" has a concrete_bit_overlay for its contents,
      with bytes 2 and 3 bound to bit_vectors for the target encoding
      of svalues for the initial values of "a" and "b" respectively.  This
      is overlaid on top of the baseline "uninitialized" everywhere else, so
      that attempting to query e.g. arr[4] will return "uninitialized".

      "a" and "b" are each in their own clusters, with no explicit
      bindings, and thus have their "implicit contents": in this case
      concrete_bit_overlay instances bound at [0..sizeof(int)) to the bit
      vectors for the initial_svalue of "a" and "b" respectively.

    arr[3] = c;  (3)
      After (3), the contents of the cluster for "arr" has been replaced by
      a new concrete_bit_overlay instance, the same as the previous one,
      but with byte 3 now bound to a bit vector for the
      initial_svalue for "c":
        | program_state
        | ╰─ Region Model
        |    ├─ Current Frame: frame: ‘test_1’@1
        |    ╰─ Store
        |       ├─ m_called_unknown_fn: false
        |       ╰─ frame: ‘test_1’@1
        |          ╰─ arr:
        |             ╰─ (648): concrete bit overlay
        |                ├─ concrete ranges
        |                │  ├─ [byte 2]: (605): bit_vector_from_svalue[size: 1 byte]
        |                │  │  ╰─ m_sval: (604): ‘char’: initial_svalue
        |                │  │     ├─ value_range: {[irange] char VARYING}
        |                │  │     ╰─ m_reg: (601): ‘char’: decl_region(‘a_48(D)’)
        |                │  │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │  │           ╰─ parent: (1): memory_space_region (stack)
        |                │  │              ╰─ parent: (0): root region
        |                │  ╰─ [byte 3]: (645): bit_vector_from_svalue[size: 1 byte]
        |                │     ╰─ m_sval: (644): ‘char’: initial_svalue
        |                │        ├─ value_range: {[irange] char VARYING}
        |                │        ╰─ m_reg: (643): ‘char’: decl_region(‘c_55(D)’)
        |                │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │              ╰─ {as above; descendents: 3, depth: 3}
        |                ╰─ baseline: (7): uninitialized contents
      Note that the concrete_bit_overlay (and other bit_contents instances)
      are immutable and pure-functional - when a cluster is written to, we
      update the cluster's m_contents to point to a different bit_contents.

    arr[i] = d;  (4)
      After the write to the symbolic array index at (4), the cluster for
      "arr" no longer uses the concrete_bit_overlay and instead points to
      a symbolic_bit_overlay, where the bytes at element [i] are bound to
      the bit_vector fot the initial value of "d":
        | program_state
        | ╰─ Region Model
        |    ├─ Current Frame: frame: ‘test_1’@1
        |    ╰─ Store
        |       ├─ m_called_unknown_fn: false
        |       ╰─ frame: ‘test_1’@1
        |          ╰─ arr:
        |             ╰─ (670): symbolic bit overlay
        |                ├─ symbolic ranges
        |                │  ├─ symbolic range
        |                │  │  ├─ start offset: (571): bits_from_bytes_scalar
        |                │  │  │  ╰─ (570): scalar_from_svalue<bytes>
        |                │  │  │     ╰─ (565): ‘int’: initial_svalue
        |                │  │  │        ├─ value_range: {[irange] int VARYING}
        |                │  │  │        ╰─ m_reg: (564): ‘int’: decl_region(‘i_61(D)’)
        |                │  │  │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │  │  │              ╰─ parent: (1): memory_space_region (stack)
        |                │  │  │                 ╰─ parent: (0): root region
        |                │  │  ╰─ size: (11): concrete_scalar<bits>: 8
        |                │  ╰─ (657): bit_vector_from_svalue[size: 1 byte]
        |                │     ╰─ m_sval: (656): ‘char’: initial_svalue
        |                │        ├─ value_range: {[irange] char VARYING}
        |                │        ╰─ m_reg: (655): ‘char’: decl_region(‘d_62(D)’)
        |                │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │              ╰─ {as above; descendents: 3, depth: 3}
        |                ╰─ baseline: (669): untracked_bit_contents
        |                   ╰─ maybe live values
        |                      ├─ (605): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (604): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (601): ‘char’: decl_region(‘a_48(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ╰─ (645): bit_vector_from_svalue[size: 1 byte]
        |                         ╰─ m_sval: (644): ‘char’: initial_svalue
        |                            ├─ value_range: {[irange] char VARYING}
        |                            ╰─ m_reg: (643): ‘char’: decl_region(‘c_55(D)’)
        |                               ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                                  ╰─ {as above; descendents: 3, depth: 3}
      We also set the baseline for this overlay to an untracked_bit_contents
      instance.  This indicates that we've given up on tracking the contents
      of "arr" at other locations (reads will return "unknown", rather than
      "uninitialized").  The untracked_bit_contents has a set of values that
      are "maybe live", capturing that the initial values of "a" and "c" may
      still be live within "arr" (to avoid leak false +ves), since we don't
      know if i == 3 or 4.

      Note how the IDs of the "maybe live values" nodes below match those
      within the concrete_bit_overlay above: the symbolic::node instances
      persist through the analysis.

    arr[j] = e;  (5)
      After (5), the user's code has written to a possibly-different
      symbolic index within "arr", so we have a new symbolic_bit_overlay,
      binding the byte at [j] to the bit vector for the initial value of "e",
      and the "maybe live values" has gained the value that was at [i], since
      we don't know whether j == i (or j == 3, or j == 4):
        | program_state
        | ╰─ Region Model
        |    ├─ Current Frame: frame: ‘test_1’@1
        |    ╰─ Store
        |       ├─ m_called_unknown_fn: false
        |       ╰─ frame: ‘test_1’@1
        |          ╰─ arr:
        |             ╰─ (685): symbolic bit overlay
        |                ├─ symbolic ranges
        |                │  ├─ symbolic range
        |                │  │  ├─ start offset: (590): bits_from_bytes_scalar
        |                │  │  │  ╰─ (589): scalar_from_svalue<bytes>
        |                │  │  │     ╰─ (584): ‘int’: initial_svalue
        |                │  │  │        ├─ value_range: {[irange] int VARYING}
        |                │  │  │        ╰─ m_reg: (583): ‘int’: decl_region(‘j_68(D)’)
        |                │  │  │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │  │  │              ╰─ parent: (1): memory_space_region (stack)
        |                │  │  │                 ╰─ parent: (0): root region
        |                │  │  ╰─ size: (11): concrete_scalar<bits>: 8
        |                │  ╰─ (676): bit_vector_from_svalue[size: 1 byte]
        |                │     ╰─ m_sval: (675): ‘char’: initial_svalue
        |                │        ├─ value_range: {[irange] char VARYING}
        |                │        ╰─ m_reg: (674): ‘char’: decl_region(‘e_69(D)’)
        |                │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │              ╰─ {as above; descendents: 3, depth: 3}
        |                ╰─ baseline: (684): untracked_bit_contents
        |                   ╰─ maybe live values
        |                      ├─ (605): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (604): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (601): ‘char’: decl_region(‘a_48(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ├─ (645): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (644): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (643): ‘char’: decl_region(‘c_55(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ╰─ (657): bit_vector_from_svalue[size: 1 byte]
        |                         ╰─ m_sval: (656): ‘char’: initial_svalue
        |                            ├─ value_range: {[irange] char VARYING}
        |                            ╰─ m_reg: (655): ‘char’: decl_region(‘d_62(D)’)
        |                               ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                                  ╰─ {as above; descendents: 3, depth: 3}

    arr[3] = f;  (6)
      After (6), we have a concrete_bit_overlay again, this, with a binding
      at byte [3], where the baseline is an untracked_bit_contents, with all
      the various other values we're written into "arr" as "maybe live":
        | program_state
        | ╰─ Region Model
        |    ├─ Current Frame: frame: ‘test_1’@1
        |    ╰─ Store
        |       ├─ m_called_unknown_fn: false
        |       ╰─ frame: ‘test_1’@1
        |          ╰─ arr:
        |             ╰─ (691): concrete bit overlay
        |                ├─ concrete ranges
        |                │  ╰─ [byte 3]: (688): bit_vector_from_svalue[size: 1 byte]
        |                │     ╰─ m_sval: (687): ‘char’: initial_svalue
        |                │        ├─ value_range: {[irange] char VARYING}
        |                │        ╰─ m_reg: (686): ‘char’: decl_region(‘f_74(D)’)
        |                │           ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                │              ╰─ parent: (1): memory_space_region (stack)
        |                │                 ╰─ parent: (0): root region
        |                ╰─ baseline: (690): untracked_bit_contents
        |                   ╰─ maybe live values
        |                      ├─ (605): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (604): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (601): ‘char’: decl_region(‘a_48(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ├─ (645): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (644): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (643): ‘char’: decl_region(‘c_55(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ├─ (657): bit_vector_from_svalue[size: 1 byte]
        |                      │  ╰─ m_sval: (656): ‘char’: initial_svalue
        |                      │     ├─ value_range: {[irange] char VARYING}
        |                      │     ╰─ m_reg: (655): ‘char’: decl_region(‘d_62(D)’)
        |                      │        ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                      │           ╰─ {as above; descendents: 3, depth: 3}
        |                      ╰─ (676): bit_vector_from_svalue[size: 1 byte]
        |                         ╰─ m_sval: (675): ‘char’: initial_svalue
        |                            ├─ value_range: {[irange] char VARYING}
        |                            ╰─ m_reg: (674): ‘char’: decl_region(‘e_69(D)’)
        |                               ╰─ parent: (522): frame_region(‘test_1’, index: 0, depth: 1)
        |                                  ╰─ {as above; descendents: 3, depth: 3}
Support for scanning buffers for a NUL terminator (for C-style strings).
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Symbolic maps of bits e.g. "bytes [0-4): <bitvec>, bytes[16-20): <bitvec>"
   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Symbolic vectors of bits e.g. "(buf_a[0-10) + buf_b[0-len) + (0b * 8))"

   Copyright (C) 2019-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A (base_region, symbolic bit offset) pair for representing
   where a region starts in memory.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A (base_region, symbolic bit range) pair.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Base class for svalues and regions.
   Copyright (C) 2023-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A (base_region, symbolic byte offset) pair.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Typesafe symbolic ranges of values (e.g. "bytes m-n").
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Unit-safe symbolic scalar values (e.g. "n * 32 bytes")
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Trimming an exploded graph to a subset of nodes and edges.
   Copyright (C) 2021-2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Simple wrapper around "tree" for types.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Traits for expressing units and dimensions in the type system.
   Copyright (C) 2026 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
Traits types for distinguishing different kinds of scalars
and ranges, so that we get a type error if we mess up our units.   

Typedef Documentation

◆ bit_offset_t

typedef offset_int ana::bit_offset_t

◆ bit_size_t

typedef offset_int ana::bit_size_t

◆ byte_offset_t

typedef offset_int ana::byte_offset_t

◆ byte_size_t

typedef offset_int ana::byte_size_t

◆ concrete_bit_offset

◆ concrete_bit_range

◆ concrete_bit_size

◆ concrete_byte_offset

◆ concrete_byte_range

◆ concrete_byte_size

◆ concrete_integer

◆ concrete_tristate_vector

A concrete-sized vector of tristate bits.   

◆ shortest_exploded_paths

Finding the shortest exploded_path within an exploded_graph.   

◆ symbolic_bit_offset

◆ symbolic_bit_range

◆ symbolic_bit_size

◆ symbolic_byte_offset

◆ symbolic_byte_range

◆ symbolic_byte_size

◆ symbolic_integer

Abbreviations for various useful symbolic::scalar types.   

◆ value_set

Enumeration Type Documentation

◆ access_direction

enum class ana::access_direction
strong
An enum for describing the direction of an access to memory.   
Enumerator
read 
write 

◆ baseline_state

enum class ana::baseline_state
strong
An enum for discriminating different baseline states,
for determining the implicit contents of base regions
that don't have their contents explicitly tracked.   
Enumerator
main 
after_main 

◆ bound_kind

enum class ana::bound_kind
strong
Enumerator
lower 
upper 

◆ constraint_op

The various kinds of constraint.   
Enumerator
CONSTRAINT_NE 
CONSTRAINT_LT 
CONSTRAINT_LE 

◆ event_kind

enum class ana::event_kind
strong
An enum for discriminating between the concrete subclasses of
checker_event.   
Enumerator
debug 
custom 
stmt 
region_creation 
state_transition 
function_entry 
state_change 
start_cfg_edge 
end_cfg_edge 
catch_ 
call_ 
return_ 
start_consolidated_cfg_edges 
end_consolidated_cfg_edges 
inlined_call 
setjmp_ 
rewind_from_longjmp 
rewind_to_setjmp 
throw_ 
unwind 
warning 

◆ iter_result

enum class ana::iter_result
strong
An enum for tracking the state of an iteration.   
Enumerator
keep_going 
stop 

◆ memory_space

enum class ana::memory_space
strong
An enum for identifying different spaces within memory.   
Enumerator
unknown 
code 
globals 
stack 
heap 
read_only_data 
thread_local_ 
private_ 

◆ poison_kind

enum class ana::poison_kind
strong
An enum describing a particular kind of "poisoned" value.   
Enumerator
uninit 
freed 
deleted 
popped_stack 
other 

◆ region_kind

An enum for discriminating between the different concrete subclasses
of region.   
Enumerator
RK_FRAME 
RK_MEMORY_SPACE 
RK_FUNCTION 
RK_LABEL 
RK_ROOT 
RK_SYMBOLIC 
RK_DECL 
RK_FIELD 
RK_ELEMENT 
RK_OFFSET 
RK_SIZED 
RK_CAST 
RK_HEAP_ALLOCATED 
RK_ALLOCA 
RK_STRING 
RK_BIT_RANGE 
RK_VAR_ARG 
RK_ERRNO 
RK_PRIVATE 
RK_UNKNOWN 

◆ supergraph_dot_flags

Flags for controlling the appearance of .dot dumps.   
Enumerator
SUPERGRAPH_DOT_SHOW_BBS 

◆ svalue_kind

An enum for discriminating between the different concrete subclasses
of svalue.   
Enumerator
SK_POINTER 
SK_CONSTANT 
SK_UNKNOWN 
SK_POISONED 
SK_SETJMP 
SK_INITIAL 
SK_UNARYOP 
SK_BINOP 
SK_BIT_VECTOR 
SK_UNMERGEABLE 
SK_PLACEHOLDER 
SK_WIDENING 
SK_ASM_OUTPUT 
SK_CONST_FN_RESULT 

Function Documentation

◆ any_pointer_p() [1/2]

bool ana::any_pointer_p ( const svalue * sval)
extern

References any_pointer_p().

◆ any_pointer_p() [2/2]

bool ana::any_pointer_p ( tree expr)
extern

References any_pointer_p().

Referenced by any_pointer_p(), and any_pointer_p().

◆ append_pathvar_with_type()

void ana::append_pathvar_with_type ( path_var pv,
tree type,
auto_vec< path_var > * out_pvs )
extern

◆ baseline_state_to_str()

const char * ana::baseline_state_to_str ( baseline_state )
extern

◆ bit_offset_to_json()

std::unique_ptr< json::value > ana::bit_offset_to_json ( const bit_offset_t & offset)
extern

References bit_offset_to_json().

Referenced by bit_offset_to_json().

◆ bit_within_byte()

◆ bits_from_bytes() [1/4]

◆ bits_from_bytes() [2/4]

symbolic_bit_range ana::bits_from_bytes ( const symbolic_byte_range & byte_range)

References bits_from_bytes().

◆ bits_from_bytes() [3/4]

const symbolic_bit_size & ana::bits_from_bytes ( const symbolic_byte_size & bytes)
inline

◆ bits_from_bytes() [4/4]

integer_with_unit< units::bit > ana::bits_from_bytes ( integer_with_unit< units::byte > bytes)
inline
Explicit conversions.   

References bits_from_bytes(), and ana::integer_with_unit< Unit >::get_integer().

◆ byte_offset_to_json()

std::unique_ptr< json::value > ana::byte_offset_to_json ( const byte_offset_t & offset)
extern

References byte_offset_to_json().

Referenced by byte_offset_to_json().

◆ cmp_csts_and_types()

int ana::cmp_csts_and_types ( const_tree cst1,
const_tree cst2 )
extern

References cmp_csts_and_types().

Referenced by cmp_csts_and_types().

◆ cmp_types()

int ana::cmp_types ( const_tree a,
const_tree b )
extern

References a, b, and cmp_types().

Referenced by cmp_types(), and ana::poisoned_svalue::key_t::operator<().

◆ compare_bit_offsets_p()

bool ana::compare_bit_offsets_p ( bit_offset_t a,
enum tree_code op,
bit_offset_t b )
extern

References a, b, and compare_bit_offsets_p().

Referenced by compare_bit_offsets_p().

◆ compare_constants()

tristate ana::compare_constants ( tree lhs_const,
enum tree_code op,
tree rhs_const )
extern

References compare_constants().

Referenced by compare_constants().

◆ compat_types_p()

bool ana::compat_types_p ( tree src_type,
tree dst_type )
extern

References compat_types_p().

Referenced by compat_types_p().

◆ concrete_bit_range_from_mask()

bool ana::concrete_bit_range_from_mask ( unsigned HOST_WIDE_INT mask,
concrete_bit_range * out )

◆ concrete_from_symbolic()

template<typename ConcreteValueType>
bool ana::concrete_from_symbolic ( const symbolic::scalar< ConcreteValueType > & in,
ConcreteValueType * out )
inline

◆ constraint_op_code()

const char * ana::constraint_op_code ( enum constraint_op c_op)

References constraint_op_code().

Referenced by constraint_op_code().

◆ convert_from_bit_offset_t()

concrete_bit_offset ana::convert_from_bit_offset_t ( bit_offset_t )
Functions for converting from older representation.

Ultimately we'll want {bit,byte}_{offset,size}_t to be
integer_with_unit<units::{bit,byte}>
but for now these should help migrate the code.   

References convert_from_bit_offset_t().

Referenced by convert_from_bit_offset_t(), and convert_from_bit_range().

◆ convert_from_bit_range()

◆ convert_from_bit_size_t()

concrete_bit_size ana::convert_from_bit_size_t ( bit_size_t )

◆ convert_from_byte_offset_t()

integer_with_unit< units::byte > ana::convert_from_byte_offset_t ( byte_offset_t )

◆ convert_from_byte_size_t()

integer_with_unit< units::byte > ana::convert_from_byte_size_t ( byte_size_t )

◆ convert_from_integer_cst()

integer ana::convert_from_integer_cst ( const_tree int_cst)

◆ convert_to_bit_offset_t()

bit_offset_t ana::convert_to_bit_offset_t ( concrete_bit_offset )
Functions for converting to older representation.   

References convert_to_bit_offset_t().

Referenced by convert_to_bit_offset_t(), and convert_to_bit_range().

◆ convert_to_bit_range()

◆ convert_to_bit_size_t()

bit_size_t ana::convert_to_bit_size_t ( concrete_bit_size )

◆ convert_to_byte_offset_t()

byte_offset_t ana::convert_to_byte_offset_t ( concrete_byte_offset )

◆ convert_to_byte_size_t()

byte_size_t ana::convert_to_byte_size_t ( concrete_byte_size )

◆ diagnostic_event_id_to_json()

std::unique_ptr< json::value > ana::diagnostic_event_id_to_json ( const diagnostics::paths::event_id_t & )
extern

◆ dump_quoted_tree()

void ana::dump_quoted_tree ( pretty_printer * pp,
tree t )
extern

References dump_quoted_tree().

Referenced by dump_quoted_tree().

◆ dump_tree()

void ana::dump_tree ( pretty_printer * pp,
tree t )
extern
Forward decls of functions.   

References dump_tree().

Referenced by dump_tree().

◆ eval_comparison_p()

template<typename ConcreteValueType>
bool ana::eval_comparison_p ( ConcreteValueType a,
enum tree_code op,
ConcreteValueType b )
inline

References a, b, eval_comparison_p(), and gcc_unreachable.

Referenced by eval_comparison_p().

◆ event_kind_to_string()

const char * ana::event_kind_to_string ( enum event_kind ek)
extern

References event_kind_to_string().

Referenced by event_kind_to_string().

◆ event_loc_info_for_function_entry()

event_loc_info ana::event_loc_info_for_function_entry ( const program_point & point,
const state_transition_at_call * state_trans )
extern

◆ fixup_tree_for_diagnostic()

tree ana::fixup_tree_for_diagnostic ( tree )
extern

◆ for_each_state_change()

bool ana::for_each_state_change ( const program_state & src_state,
const program_state & dst_state,
const extrinsic_state & ext_state,
state_change_visitor * visitor )
extern

◆ get_bit_position()

concrete_bit_offset ana::get_bit_position ( const_tree field)
extern

References get_bit_position().

Referenced by get_bit_position().

◆ get_diagnostic_tree_for_gassign()

tree ana::get_diagnostic_tree_for_gassign ( const gassign * )
extern

◆ get_dump_name()

const char * ana::get_dump_name ( memory_space )
extern

References get_dump_name().

Referenced by get_dump_name().

◆ get_field_at_bit_offset()

tree ana::get_field_at_bit_offset ( tree record_type,
concrete_bit_offset bit_offset )
extern

◆ get_or_create_any_logfile()

FILE * ana::get_or_create_any_logfile ( )
extern

◆ get_smallest_enclosing_byte_range()

void ana::get_smallest_enclosing_byte_range ( const concrete_bit_range & in_bit_range,
concrete_byte_range * out_byte_range,
concrete_bit_offset * out_bit_offset )

◆ get_ssa_default_def()

tree ana::get_ssa_default_def ( const function & fun,
tree var )
extern

References get_ssa_default_def().

Referenced by get_ssa_default_def().

◆ get_stashed_constant_by_name()

tree ana::get_stashed_constant_by_name ( const char * name)
extern

◆ get_stmt_location()

location_t ana::get_stmt_location ( const gimple * stmt,
function * fun )
extern

References get_stmt_location().

Referenced by get_stmt_location().

◆ get_string_cst_size()

tree ana::get_string_cst_size ( const_tree string_cst)
extern

References get_string_cst_size().

Referenced by get_string_cst_size().

◆ get_type_size()

bool ana::get_type_size ( const_tree type,
concrete_bit_size * out )
extern

References get_type_size().

Referenced by get_type_size().

◆ int_size_in_bits()

bool ana::int_size_in_bits ( const_tree type,
bit_size_t * out )
extern

References int_size_in_bits().

Referenced by int_size_in_bits().

◆ log_stashed_constants()

void ana::log_stashed_constants ( logger * logger)
extern

◆ make_checkers()

std::vector< std::unique_ptr< state_machine > > ana::make_checkers ( logger * logger)
extern
The various state_machine subclasses are hidden in their respective
implementation files.   

References make_checkers().

Referenced by make_checkers().

◆ make_fd_state_machine()

std::unique_ptr< state_machine > ana::make_fd_state_machine ( logger * )
extern

◆ make_fileptr_state_machine()

std::unique_ptr< state_machine > ana::make_fileptr_state_machine ( logger * )
extern

◆ make_integer_cst_from_integer()

tree ana::make_integer_cst_from_integer ( tree type,
const integer & value,
bool wrap )

◆ make_kf_strlen()

std::unique_ptr< known_function > ana::make_kf_strlen ( )
extern

References make_kf_strlen().

Referenced by make_kf_strlen().

◆ make_malloc_state_machine()

std::unique_ptr< state_machine > ana::make_malloc_state_machine ( logger * )
extern

◆ make_pattern_test_state_machine()

std::unique_ptr< state_machine > ana::make_pattern_test_state_machine ( logger * )
extern

◆ make_ploc_fixer_for_epath_for_leak_diagnostic()

std::unique_ptr< pending_location::fixer_for_epath > ana::make_ploc_fixer_for_epath_for_leak_diagnostic ( const exploded_graph & eg,
tree var )
extern

◆ make_poisoned_value_diagnostic()

std::unique_ptr< pending_diagnostic > ana::make_poisoned_value_diagnostic ( tree expr,
enum poison_kind pkind,
const region * src_region,
tree check_expr )
extern
Factory functions for various diagnostics.   

References make_poisoned_value_diagnostic().

Referenced by make_poisoned_value_diagnostic().

◆ make_sensitive_state_machine()

std::unique_ptr< state_machine > ana::make_sensitive_state_machine ( logger * )
extern

◆ make_shift_count_negative_diagnostic()

std::unique_ptr< pending_diagnostic > ana::make_shift_count_negative_diagnostic ( const gassign * assign,
tree count_cst,
const region * src_region )
extern

◆ make_shift_count_overflow_diagnostic()

std::unique_ptr< pending_diagnostic > ana::make_shift_count_overflow_diagnostic ( const gassign * assign,
int operand_precision,
tree count_cst,
const region * src_region )
extern

◆ make_signal_state_machine()

std::unique_ptr< state_machine > ana::make_signal_state_machine ( logger * )
extern

◆ make_taint_state_machine()

std::unique_ptr< state_machine > ana::make_taint_state_machine ( logger * )
extern

◆ make_va_list_state_machine()

std::unique_ptr< state_machine > ana::make_va_list_state_machine ( logger * )
extern

◆ make_write_to_const_diagnostic()

std::unique_ptr< pending_diagnostic > ana::make_write_to_const_diagnostic ( const region * dest_reg,
tree decl )
extern

◆ make_write_to_string_literal_diagnostic()

std::unique_ptr< pending_diagnostic > ana::make_write_to_string_literal_diagnostic ( const region * reg)
extern

◆ maybe_bytes_from_bits() [1/4]

◆ maybe_bytes_from_bits() [2/4]

bool ana::maybe_bytes_from_bits ( const symbolic_bit_range & bit_range,
symbolic_byte_range * out )

◆ maybe_bytes_from_bits() [3/4]

const symbolic_byte_size * ana::maybe_bytes_from_bits ( const symbolic_bit_size & bits)

◆ maybe_bytes_from_bits() [4/4]

bool ana::maybe_bytes_from_bits ( integer_with_unit< units::bit > bits,
integer_with_unit< units::byte > * out )

◆ operator!=() [1/3]

template<typename Unit>
bool ana::operator!= ( const integer_with_unit< Unit > & lhs,
const integer_with_unit< Unit > & rhs )
inline

◆ operator!=() [2/3]

bool ana::operator!= ( const integer_with_unit< units::bit > & lhs,
const integer_with_unit< units::byte > & rhs )
inline

References bits_from_bytes().

◆ operator!=() [3/3]

bool ana::operator!= ( const integer_with_unit< units::byte > & lhs,
const integer_with_unit< units::bit > & rhs )
inline

References bits_from_bytes().

◆ operator""_bit()

integer_with_unit< units::bit > ana::operator""_bit ( unsigned long long v)
inline
User-defined literal operators.   

References gcc_checking_assert.

◆ operator""_bits()

integer_with_unit< units::bit > ana::operator""_bits ( unsigned long long v)
inline

References gcc_checking_assert.

◆ operator""_byte()

integer_with_unit< units::byte > ana::operator""_byte ( unsigned long long v)
inline

References gcc_checking_assert.

◆ operator""_bytes()

integer_with_unit< units::byte > ana::operator""_bytes ( unsigned long long v)
inline

References gcc_checking_assert.

◆ operator*() [1/3]

template<typename Unit>
integer_with_unit< Unit > ana::operator* ( const integer & lhs,
const integer_with_unit< Unit > & rhs )
inline
Multiplication of unitless value by a integer_with_unit.   

References ana::integer_with_unit< Unit >::integer_with_unit().

◆ operator*() [2/3]

template<typename Unit>
integer_with_unit< Unit > ana::operator* ( const integer_with_unit< Unit > & lhs,
const integer & rhs )
inline
Multiplication of integer_with_unit by a unitless value.   

References ana::integer_with_unit< Unit >::integer_with_unit().

◆ operator*() [3/3]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator* ( const symbolic::scalar< ConcreteValueType > & lhs,
const symbolic::scalar< integer > & rhs )
symbolic * symbolic_integer -> symbolic.   

◆ operator+() [1/5]

template<typename Unit>
integer_with_unit< Unit > ana::operator+ ( const integer_with_unit< Unit > & lhs,
const integer_with_unit< Unit > & rhs )
inline
Addition of integer_with_unit of same unit.   

References ana::integer_with_unit< Unit >::integer_with_unit().

◆ operator+() [2/5]

integer_with_unit< units::bit > ana::operator+ ( const integer_with_unit< units::bit > & lhs,
const integer_with_unit< units::byte > & rhs )
inline
Addition of integer_with_unit of compatible types, implicitly converting to bits.   

References bits_from_bytes().

◆ operator+() [3/5]

integer_with_unit< units::bit > ana::operator+ ( const integer_with_unit< units::byte > & lhs,
const integer_with_unit< units::bit > & rhs )
inline

References bits_from_bytes().

◆ operator+() [4/5]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator+ ( const symbolic::scalar< ConcreteValueType > & lhs,
const ConcreteValueType & rhs )
symbolic + concrete -> symbolic.   

◆ operator+() [5/5]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator+ ( const symbolic::scalar< ConcreteValueType > & lhs,
const symbolic::scalar< ConcreteValueType > & rhs )
Overloaded operators.   
Addition.   
symbolic + symbolic -> symbolic.   

◆ operator-() [1/7]

template<typename Unit>
integer_with_unit< Unit > ana::operator- ( const integer_with_unit< Unit > & i)
inline

◆ operator-() [2/7]

template<typename Unit>
integer_with_unit< Unit > ana::operator- ( const integer_with_unit< Unit > & lhs,
const integer_with_unit< Unit > & rhs )
inline
Subtraction of integer_with_unit of same kind.   

References ana::integer_with_unit< Unit >::integer_with_unit().

◆ operator-() [3/7]

integer_with_unit< units::bit > ana::operator- ( const integer_with_unit< units::bit > & lhs,
const integer_with_unit< units::byte > & rhs )
inline
Subtraction of integer_with_unit of compatible types,
implicitly converting to bits.   

References bits_from_bytes().

◆ operator-() [4/7]

integer_with_unit< units::bit > ana::operator- ( const integer_with_unit< units::byte > & lhs,
const integer_with_unit< units::bit > & rhs )
inline

References bits_from_bytes().

◆ operator-() [5/7]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator- ( const symbolic::scalar< ConcreteValueType > & i)
Negation.   

References i.

◆ operator-() [6/7]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator- ( const symbolic::scalar< ConcreteValueType > & lhs,
const ConcreteValueType & rhs )
symbolic - concrete -> symbolic.   

◆ operator-() [7/7]

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::operator- ( const symbolic::scalar< ConcreteValueType > & lhs,
const symbolic::scalar< ConcreteValueType > & rhs )
Subtraction.   
symbolic - symbolic -> symbolic.   

◆ operator==() [1/3]

template<typename Unit>
bool ana::operator== ( const integer_with_unit< Unit > & lhs,
const integer_with_unit< Unit > & rhs )
inline
Overloaded operators.   
Comparisons of like units.   

◆ operator==() [2/3]

bool ana::operator== ( const integer_with_unit< units::bit > & lhs,
const integer_with_unit< units::byte > & rhs )
inline
Comparisons of compatible units, implicitly converting to bits.   

References bits_from_bytes().

◆ operator==() [3/3]

bool ana::operator== ( const integer_with_unit< units::byte > & lhs,
const integer_with_unit< units::bit > & rhs )
inline

References bits_from_bytes().

◆ poison_kind_to_str()

const char * ana::poison_kind_to_str ( enum poison_kind)
extern

References poison_kind_to_str().

Referenced by poison_kind_to_str().

◆ print_expr_for_user()

void ana::print_expr_for_user ( pretty_printer * pp,
tree t )
extern

References print_expr_for_user().

Referenced by print_expr_for_user().

◆ print_quoted_type()

void ana::print_quoted_type ( pretty_printer * pp,
tree t )
extern

References print_quoted_type().

Referenced by print_quoted_type().

◆ printable_expr_p()

bool ana::printable_expr_p ( const_tree expr)
extern

◆ readability_comparator()

int ana::readability_comparator ( const void * p1,
const void * p2 )
extern

◆ register_known_analyzer_functions()

void ana::register_known_analyzer_functions ( known_function_manager & kfm)
extern

◆ register_known_fd_functions()

void ana::register_known_fd_functions ( known_function_manager & kfm)
extern

◆ register_known_file_functions()

void ana::register_known_file_functions ( known_function_manager & kfm)
extern

◆ register_known_functions()

void ana::register_known_functions ( known_function_manager & kfm,
region_model_manager & rmm )
extern

◆ register_known_functions_lang_cp()

void ana::register_known_functions_lang_cp ( known_function_manager & kfm)
extern

◆ register_varargs_builtins()

void ana::register_varargs_builtins ( known_function_manager & kfm)
extern

◆ remove_ssa_names()

tree ana::remove_ssa_names ( tree expr)
extern

References remove_ssa_names().

Referenced by remove_ssa_names().

◆ round_bit_to_lowest_byte()

◆ run_checkers()

void ana::run_checkers ( )
extern

References run_checkers().

Referenced by run_checkers().

◆ strip_types()

const svalue * ana::strip_types ( const svalue * sval,
region_model_manager & mgr )
extern

References strip_types().

Referenced by strip_types().

◆ symbolic_from_concrete()

template<typename ConcreteValueType>
const symbolic::scalar< ConcreteValueType > & ana::symbolic_from_concrete ( const ConcreteValueType & in,
symbolic::scalar_manager< ConcreteValueType > & mgr )
inline

◆ tree_cmp()

int ana::tree_cmp ( const void * p1,
const void * p2 )
extern

References tree_cmp().

Referenced by tree_cmp().

◆ tree_to_json()

std::unique_ptr< json::value > ana::tree_to_json ( tree node)
extern

References tree_to_json().

Referenced by tree_to_json().

◆ useful_location_p()

bool ana::useful_location_p ( location_t loc)
inline