JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
Defines a set of cs_int_pair_set operations for CodeSonar.
| #define CS_INT_PAIR_SET_H | ||
| #define CS_INT_PAIR_SET_NULL | (cs_int_pair_set_get_null()) | The null cs_int_pair_set. |
| #define CS_INT_PAIR_SET_INL_H |
| Definition | typedef struct cs_int_pair_set_iter_t * cs_int_pair_set_iter |
|---|---|
| Notes | A structure to handle cs_int_pair_set traversal.
Used by: |
| Definition | typedef struct __cs_ips_to_pdgvs_map * cs_ips_to_pdgvs_map |
|---|---|
| Notes | A map cs_int_pair_set -> cs_pdg_vertex_set, where each entry represents the mapping from a source position to the set of vertices at that source position. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | |||
| Notes | The user is responsible for closing the returned set: use cs_int_pair_set_close(). |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | Increment function for cs_int_pair_set: increment the reference count for int_pair_set. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS unless an internal error occurs. | ||||||
| Notes | The user is responsible for closing out_set : use cs_int_pair_set_close(). The cs_set_kind of out_set is the same as that of int_pair_set. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns |
A cs_result:
|
|||
| Notes | Decrements the reference count for int_pair_set. If this brings the reference count to 0 (zero), frees the set. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Creates a new cs_int_pair ( int1, int2 ) and inserts the pair into int_pair_set. Note that if int2 exceeds 2^32-1, the pair is split into two or more pairs such that the combination of the pairs represents the entire interval ( int1, int2 ). |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Deletes cs_int_pair (int1, int2) from a int_pair_set. Note that if int2 exceeds 2^32-1, the pair is split into two or more pairs such that the combination of all the pairs represents the entire interval ( int1, int2 ) and each of these pairs is deleted. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_boolean:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The kind of int_pair_set, as a cs_set_kind. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if int_pair_set is empty, cs_false otherwise. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | The number of items in int_pair_set. Note that any additional pairs that may have been generated by cs_int_pair_set_put() are included in the count. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A hash of int_pair_set. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | |||||||||
| Notes | It is the responsibility of the user to close out_set after use: use cs_int_pair_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | |||||||||
| Notes | It is the responsibility of the user to close out_set after use: use cs_int_pair_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if int_pair_set1 and int_pair_set2 have a non-empty intersection, cs_false otherwise |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | |||||||||
| Notes | It is the responsibility of the user to close out_set after use: use cs_int_pair_set_close(). |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Retrieve the first cs_int_pair from int_pair_set. This function opens int_pair_set_iter, which is required by cs_int_pair_set_iter_next(). Use cs_int_pair_set_iter_close() to close int_pair_set_iter. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on success. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Write a list of cs_int_pair element of a cs_int_pair_set into a user-allocated array. If the array is not large enough to hold the entire list, the list is truncated to fit into the array. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
|||||||||
| Notes | Find the cs_pdg_vertex_set associated with int_pair_set. The user is responsible for closing the returned set: use cs_pdg_vertex_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if map1 and map2 are the same object; cs_false otherwise. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A hash of map. If you are building a hash table of cs_ips_to_pdgvs_map elements, you can use cs_ips_to_pdgvs_map_hash() as the hash function and cs_ips_to_pdgvs_map_same_instance() as the comparator. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||
| Notes | Create a cs_ips_to_pdgvs_map representing the location -> cs_pdg_vertex_set mapping for the source file instance with sfid. At most one such map exists at any one time; if there is already an open map for a different source file, close it first before opening the new map. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | CS_SUCCESS on success. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success. | ||||||||||||
| Notes | Retrieve a cs_pdg_vertex_set that contains every vertex associated with the source text between offset integer1 and offset integer1 + integer2, inclusive. The user is responsible for closing the returned set: use cs_pdg_vertex_set_close(). |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if int_pair_set1 and int_pair_set2 are equal; cs_false if not. |
| Returns | The number of cs_int_pair_set objects allocated by the C API. |
|---|---|
| Time-Complexity | O(1) |
| Returns | The number of cs_ips_to_pdgvs_map objects allocated by the C API. |
|---|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | cs_true if int_pair_set1 and int_pair_set2 are the same object; cs_false if not. | ||||||
| Notes | cs_int_pair_set_same_instance( a, b ) implies cs_int_pair_set_equal( a, b ) |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | cs_true if int_pair_set is null; cs_false otherwise. |
| Returns | A null cs_int_pair_set. |
|---|