C and C++ Binaries C# Java

Description: Integer Pair Set (INT_PAIR_SET)

Integer pair sets are used to store pairs of integers, which in turn are used to represent substrings in a source file.

Language Module Support: Internal representation for source files (including substring representation via integer pair sets) is available for C/C++, binary, C#, and Java analyses.


Each pair (a, b) in an integer pair set represents a substring in a source file as follows:

integer represents constraints
a (first) offset from the beginning of the file (0 origin) must be between 0 and 224-1
b (second) one less than the length of the substring must be non-negative

The implementation may split a given pair into two or more pairs that represent the same interval.

Integer pair sets are used to represent the set of locations in a source file (optionally) associated with each point.

Links

By API implementation:

Language Integer Pair Set Functionality and Types Provided By Integer Pair Type Integer Pair Set Type
C++ class int_pair_set typedef int_pair class int_pair_set
Python class int_pair_set tuple (int, int) class int_pair_set
C Header cs_int_pair_set.h typedef cs_int_pair typedef cs_int_pair_set, typedef cs_const_int_pair_set

See also: