Lines Matching refs:bm2
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()
119 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ', in bm_equal_print_diffs()
120 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' ' in bm_equal_print_diffs()
133 struct bitmap* bm2; in bm_test1() local
158 bm2 = DRD_(bm_new)(); in bm_test1()
159 DRD_(bm_merge2)(bm2, bm); in bm_test1()
160 DRD_(bm_merge2)(bm2, bm); in bm_test1()
161 assert(bm_equal_print_diffs(bm2, bm)); in bm_test1()
168 DRD_(bm_delete)(bm2); in bm_test1()
175 struct bitmap* bm2; in bm_test2() local
178 bm2 = DRD_(bm_new)(); in bm_test2()
180 DRD_(bm_access_load_1)(bm2, make_address(1, 0) + 7); in bm_test2()
181 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
182 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
183 DRD_(bm_access_load_1)(bm2, 7); in bm_test2()
184 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
185 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
187 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
188 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
189 DRD_(bm_delete)(bm2); in bm_test2()
198 struct bitmap* bm2; in bm_test3() local
209 bm2 = DRD_(bm_new)(); in bm_test3()
216 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
219 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
222 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
225 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
228 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
232 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
235 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
238 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
241 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
244 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
249 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
253 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
257 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
261 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
265 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
270 DRD_(bm_access_range_load)(bm2, 0, make_address(2, 0) + 2 * BITS_PER_UWORD); in bm_test3()
271 DRD_(bm_access_range_store)(bm2, 0, make_address(2, 0) + 2 * BITS_PER_UWORD); in bm_test3()
280 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
283 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
286 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
289 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
292 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
296 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
299 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
302 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
305 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
308 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
313 assert(bm_equal_print_diffs(bm1, bm2)); in bm_test3()
316 DRD_(bm_delete)(bm2); in bm_test3()