@@ -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
310317public:
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];
0 commit comments