Static Value-Flow Analysis
Loading...
Searching...
No Matches
svf
lib
Util
BitVector.cpp
Go to the documentation of this file.
1
//===- BitVector.cpp -- bit vector data structure implementation ------------//
2
3
/*
4
* BitVector.cpp
5
*
6
* Contiguous bit vector with trailing 0s stripped (implementation).
7
*
8
* Created on: Jul 4, 2021
9
* Author: Mohamad Barbar
10
*/
11
12
#include <
Util/BitVector.h
>
13
14
namespace
SVF
15
{
16
17
BitVector::BitVector
(
void
)
18
:
BitVector
(0) { }
19
20
BitVector::BitVector
(
size_t
n
)
21
:
CoreBitVector
(
n
)
22
{
23
// This ensures that leading zeroes are never stripped.
24
set
(0);
25
reset
(0);
26
}
27
28
BitVector::BitVector
(
const
BitVector
&bv)
29
:
CoreBitVector
(bv) { }
30
31
BitVector::BitVector
(
BitVector
&&bv)
32
:
CoreBitVector
(bv) { }
33
34
BitVector
&
BitVector::operator=
(
const
BitVector
&
rhs
)
35
{
36
CoreBitVector::operator=
(
rhs
);
37
return
*
this
;
38
}
39
40
BitVector
&
BitVector::operator=
(
BitVector
&&
rhs
)
41
{
42
CoreBitVector::operator=
(
rhs
);
43
return
*
this
;
44
}
45
46
}
// namespace SVF
BitVector.h
n
cJSON * n
Definition
cJSON.cpp:2558
SVF::BitVector
Definition
BitVector.h:32
SVF::BitVector::BitVector
BitVector(void)
Construct empty BV.
Definition
BitVector.cpp:17
SVF::BitVector::operator=
BitVector & operator=(const BitVector &rhs)
Copy assignment.
Definition
BitVector.cpp:34
SVF::CoreBitVector
Definition
CoreBitVector.h:31
SVF::CoreBitVector::operator=
CoreBitVector & operator=(const CoreBitVector &rhs)
Copy assignment.
Definition
CoreBitVector.cpp:36
SVF::CoreBitVector::reset
void reset(u32_t bit)
Resets bit in the CBV.
Definition
CoreBitVector.cpp:97
SVF::CoreBitVector::set
void set(u32_t bit)
Sets bit in the CBV.
Definition
CoreBitVector.cpp:88
SVF
for isBitcode
Definition
BasicTypes.h:68
SVF::IRBuilder
llvm::IRBuilder IRBuilder
Definition
BasicTypes.h:74
Generated by
1.9.8