Lines Matching refs:bm1

100 int bm_equal_print_diffs(struct bitmap* bm1, struct bitmap* bm2)  in bm_equal_print_diffs()  argument
104 equal = DRD_(bm_equal)(bm1, bm2); in bm_equal_print_diffs()
112 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) in bm_equal_print_diffs()
113 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) in bm_equal_print_diffs()
117 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
118 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', in bm_equal_print_diffs()
174 struct bitmap* bm1; in bm_test2() local
177 bm1 = DRD_(bm_new)(); in bm_test2()
179 DRD_(bm_access_load_1)(bm1, 7); in bm_test2()
181 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
182 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
184 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
185 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
186 DRD_(bm_access_store_1)(bm1, make_address(1, 0) + 7); in bm_test2()
187 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
188 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
190 DRD_(bm_delete)(bm1); in bm_test2()
197 struct bitmap* bm1; in bm_test3() local
208 bm1 = DRD_(bm_new)(); in bm_test3()
214 DRD_(bm_access_range_load)(bm1, i, j); in bm_test3()
215 DRD_(bm_clear_load)(bm1, i, j); in bm_test3()
216 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
217 DRD_(bm_access_load_1)(bm1, i); in bm_test3()
218 DRD_(bm_clear_load)(bm1, i, i + MAX(1, ADDR_GRANULARITY)); in bm_test3()
219 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
220 DRD_(bm_access_load_2)(bm1, i); in bm_test3()
221 DRD_(bm_clear_load)(bm1, i, i + MAX(2, ADDR_GRANULARITY)); in bm_test3()
222 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
223 DRD_(bm_access_load_4)(bm1, i); in bm_test3()
224 DRD_(bm_clear_load)(bm1, i, i + MAX(4, ADDR_GRANULARITY)); in bm_test3()
225 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
226 DRD_(bm_access_load_8)(bm1, i); in bm_test3()
227 DRD_(bm_clear_load)(bm1, i, i + MAX(8, ADDR_GRANULARITY)); in bm_test3()
228 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
230 DRD_(bm_access_range_store)(bm1, i, j); in bm_test3()
231 DRD_(bm_clear_store)(bm1, i, j); in bm_test3()
232 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
233 DRD_(bm_access_store_1)(bm1, i); in bm_test3()
234 DRD_(bm_clear_store)(bm1, i, i + MAX(1, ADDR_GRANULARITY)); in bm_test3()
235 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
236 DRD_(bm_access_store_2)(bm1, i); in bm_test3()
237 DRD_(bm_clear_store)(bm1, i, i + MAX(2, ADDR_GRANULARITY)); in bm_test3()
238 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
239 DRD_(bm_access_store_4)(bm1, i); in bm_test3()
240 DRD_(bm_clear_store)(bm1, i, i + MAX(4, ADDR_GRANULARITY)); in bm_test3()
241 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
242 DRD_(bm_access_store_8)(bm1, i); in bm_test3()
243 DRD_(bm_clear_store)(bm1, i, i + MAX(8, ADDR_GRANULARITY)); in bm_test3()
244 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
246 DRD_(bm_access_range_load)(bm1, i, j); in bm_test3()
247 DRD_(bm_access_range_store)(bm1, i, j); in bm_test3()
248 DRD_(bm_clear)(bm1, i, j); in bm_test3()
249 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
250 DRD_(bm_access_load_1)(bm1, i); in bm_test3()
251 DRD_(bm_access_store_1)(bm1, i); in bm_test3()
252 DRD_(bm_clear)(bm1, i, i + MAX(1, ADDR_GRANULARITY)); in bm_test3()
253 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
254 DRD_(bm_access_load_2)(bm1, i); in bm_test3()
255 DRD_(bm_access_store_2)(bm1, i); in bm_test3()
256 DRD_(bm_clear)(bm1, i, i + MAX(2, ADDR_GRANULARITY)); in bm_test3()
257 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
258 DRD_(bm_access_load_4)(bm1, i); in bm_test3()
259 DRD_(bm_access_store_4)(bm1, i); in bm_test3()
260 DRD_(bm_clear)(bm1, i, i + MAX(4, ADDR_GRANULARITY)); in bm_test3()
261 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
262 DRD_(bm_access_load_8)(bm1, i); in bm_test3()
263 DRD_(bm_access_store_8)(bm1, i); in bm_test3()
264 DRD_(bm_clear)(bm1, i, i + MAX(8, ADDR_GRANULARITY)); in bm_test3()
265 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
268 DRD_(bm_access_range_load)(bm1, 0, make_address(2, 0) + 2 * BITS_PER_UWORD); in bm_test3()
269 DRD_(bm_access_range_store)(bm1, 0, make_address(2, 0) + 2 * BITS_PER_UWORD); in bm_test3()
278 DRD_(bm_clear_load)(bm1, i, j); in bm_test3()
279 DRD_(bm_access_range_load)(bm1, i, j); in bm_test3()
280 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
281 DRD_(bm_clear_load)(bm1, i, i+1); in bm_test3()
282 DRD_(bm_access_load_1)(bm1, i); in bm_test3()
283 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
284 DRD_(bm_clear_load)(bm1, i, i+2); in bm_test3()
285 DRD_(bm_access_load_2)(bm1, i); in bm_test3()
286 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
287 DRD_(bm_clear_load)(bm1, i, i+4); in bm_test3()
288 DRD_(bm_access_load_4)(bm1, i); in bm_test3()
289 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
290 DRD_(bm_clear_load)(bm1, i, i+8); in bm_test3()
291 DRD_(bm_access_load_8)(bm1, i); in bm_test3()
292 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
294 DRD_(bm_clear_store)(bm1, i, j); in bm_test3()
295 DRD_(bm_access_range_store)(bm1, i, j); in bm_test3()
296 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
297 DRD_(bm_clear_store)(bm1, i, i+1); in bm_test3()
298 DRD_(bm_access_store_1)(bm1, i); in bm_test3()
299 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
300 DRD_(bm_clear_store)(bm1, i, i+2); in bm_test3()
301 DRD_(bm_access_store_2)(bm1, i); in bm_test3()
302 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
303 DRD_(bm_clear_store)(bm1, i, i+4); in bm_test3()
304 DRD_(bm_access_store_4)(bm1, i); in bm_test3()
305 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
306 DRD_(bm_clear_store)(bm1, i, i+8); in bm_test3()
307 DRD_(bm_access_store_8)(bm1, i); in bm_test3()
308 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
310 DRD_(bm_clear)(bm1, i, j); in bm_test3()
311 DRD_(bm_access_range_load)(bm1, i, j); in bm_test3()
312 DRD_(bm_access_range_store)(bm1, i, j); in bm_test3()
313 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
317 DRD_(bm_delete)(bm1); in bm_test3()