CodeSonar C++ API
[For improved navigation, enable JavaScript.]
cs_symbol_set.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023, an unpublished work by CodeSecure, Inc.
3  * ALL RIGHTS RESERVED
4  *
5  * Copyright (c) 2013-2023, an unpublished work by GrammaTech, Inc.
6  * ALL RIGHTS RESERVED
7  *
8  * This software is furnished under a license and may be used and
9  * copied only in accordance with the terms of such license and the
10  * inclusion of the above copyright notice. This software or any
11  * other copies thereof may not be provided or otherwise made
12  * available to any other person. Title to and ownership of the
13  * software is retained by CodeSecure, Inc.
14  */
15 
16 #ifndef CS_SYMBOL_SET_HPP
17 #define CS_SYMBOL_SET_HPP
18 
19 #include "cs_symbol_set_decl.hpp"
20 #include "cs_point_set_decl.hpp"
21 
24 namespace cs{
26  inline point_set set_mixin<symbol_set>::used_points() const
27  {
28  cs_pdg_vertex_set rv;
29  check(cs_abs_loc_set_used_vertices(unwrap(), &rv));
30  return cglue<point_set>::wrap(rv, false);
31  }
32 
33  inline point_set set_mixin<symbol_set>::killed_points() const
34  {
35  cs_pdg_vertex_set rv;
36  check(cs_abs_loc_set_killed_vertices(unwrap(), &rv));
37  return cglue<point_set>::wrap(rv, false);
38  }
39 
40  inline point_set set_mixin<symbol_set>::cond_killed_points() const
41  {
42  cs_pdg_vertex_set rv;
43  check(cs_abs_loc_set_cond_killed_vertices(unwrap(), &rv));
44  return cglue<point_set>::wrap(rv, false);
45  }
46 
47  inline point_set set_mixin<symbol_set>::may_killed_points() const
48  {
49  cs_pdg_vertex_set rv;
50  check(cs_abs_loc_set_may_killed_vertices(unwrap(), &rv));
51  return cglue<point_set>::wrap(rv, false);
52  }
57  inline symbol_set cglue<symbol_set>::wrap(const cs_abs_loc_set &c, bool frozen)
58  { return symbol_set(c, frozen); }
59 
60  inline cs_abs_loc_set cglue<symbol_set>::unwrap(const symbol_set &c)
61  { return c.unwrap(); }
64 }
65 
66 #endif /* CS_SYMBOL_SET_HPP */
Namespace for CodeSonar/CodeSurfer API.
Definition: cs_ast.hpp:33