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.