Skip to content

Commit 8fe84ba

Browse files
author
bjjwwang
committed
revoke the code format change
1 parent 2f111a5 commit 8fe84ba

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

svf/include/AE/Core/AbstractState.h

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ class AbstractState
112112
}
113113

114114
/// Return the internal index if addr is an address otherwise return the value of idx
115-
inline u32_t getIDFromAddr(u32_t addr) {
115+
inline u32_t getIDFromAddr(u32_t addr)
116+
{
116117
return _freedAddrs.count(addr) ? AddressValue::getInternalID(InvalidMemAddr) : AddressValue::getInternalID(addr);
117118
}
118119

@@ -201,17 +202,20 @@ class AbstractState
201202

202203

203204
/// get abstract value of variable
204-
inline AbstractValue &operator[](u32_t varId) {
205+
inline AbstractValue &operator[](u32_t varId)
206+
{
205207
return _varToAbsVal[varId];
206208
}
207209

208210
/// get abstract value of variable
209-
inline const AbstractValue &operator[](u32_t varId) const {
211+
inline const AbstractValue &operator[](u32_t varId) const
212+
{
210213
return _varToAbsVal.at(varId);
211214
}
212215

213216
/// whether the variable is in varToAddrs table
214-
inline bool inVarToAddrsTable(u32_t id) const {
217+
inline bool inVarToAddrsTable(u32_t id) const
218+
{
215219
if (_varToAbsVal.find(id)!= _varToAbsVal.end())
216220
{
217221
if (_varToAbsVal.at(id).isAddr())
@@ -223,7 +227,8 @@ class AbstractState
223227
}
224228

225229
/// whether the variable is in varToVal table
226-
inline bool inVarToValTable(u32_t id) const {
230+
inline bool inVarToValTable(u32_t id) const
231+
{
227232
if (_varToAbsVal.find(id) != _varToAbsVal.end())
228233
{
229234
if (_varToAbsVal.at(id).isInterval())
@@ -235,7 +240,8 @@ class AbstractState
235240
}
236241

237242
/// whether the memory address stores memory addresses
238-
inline bool inAddrToAddrsTable(u32_t id) const {
243+
inline bool inAddrToAddrsTable(u32_t id) const
244+
{
239245
if (_addrToAbsVal.find(id)!= _addrToAbsVal.end())
240246
{
241247
if (_addrToAbsVal.at(id).isAddr())
@@ -247,7 +253,8 @@ class AbstractState
247253
}
248254

249255
/// whether the memory address stores abstract value
250-
inline bool inAddrToValTable(u32_t id) const {
256+
inline bool inAddrToValTable(u32_t id) const
257+
{
251258
if (_addrToAbsVal.find(id) != _addrToAbsVal.end())
252259
{
253260
if (_addrToAbsVal.at(id).isInterval())
@@ -308,14 +315,16 @@ class AbstractState
308315
u32_t hash() const;
309316

310317
public:
311-
inline void store(u32_t addr, const AbstractValue &val) {
318+
inline void store(u32_t addr, const AbstractValue &val)
319+
{
312320
assert(isVirtualMemAddress(addr) && "not virtual address?");
313321
u32_t objId = getIDFromAddr(addr);
314322
if (isNullMem(addr)) return;
315323
_addrToAbsVal[objId] = val;
316324
}
317325

318-
inline AbstractValue &load(u32_t addr) {
326+
inline AbstractValue &load(u32_t addr)
327+
{
319328
assert(isVirtualMemAddress(addr) && "not virtual address?");
320329
u32_t objId = getIDFromAddr(addr);
321330
return _addrToAbsVal[objId];

svf/include/AE/Core/AbstractValue.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
// Xiao Cheng, Jiawei Wang and Yulei Sui. Precise Sparse Abstract Execution via Cross-Domain Interaction.
2525
// 46th International Conference on Software Engineering. (ICSE24)
2626

27-
#ifndef SVF_ABSTRACTVALUE_H
28-
#define SVF_ABSTRACTVALUE_H
29-
3027
#include "AE/Core/IntervalValue.h"
3128
#include "AE/Core/AddressValue.h"
3229
#include "Util/SVFUtil.h"
@@ -158,4 +155,3 @@ class AbstractValue
158155
}
159156
};
160157
}
161-
#endif // SVF_ABSTRACTVALUE_H

0 commit comments

Comments
 (0)