Lines Matching refs:bm2
89 int bm_equal_print_diffs(struct bitmap* bm1, struct bitmap* bm2)
93 equal = DRD_(bm_equal)(bm1, bm2);
101 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad)
102 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore))
108 DRD_(bm_has_1)(bm2, i, eLoad) ? 'R' : ' ',
109 DRD_(bm_has_1)(bm2, i, eStore) ? 'W' : ' '
122 struct bitmap* bm2;
147 bm2 = DRD_(bm_new)();
148 DRD_(bm_merge2)(bm2, bm);
149 DRD_(bm_merge2)(bm2, bm);
150 assert(bm_equal_print_diffs(bm2, bm));
156 VG_(printf)("Deleting bitmap bm2\n");
157 DRD_(bm_delete)(bm2);
164 struct bitmap* bm2;
167 bm2 = DRD_(bm_new)();
169 DRD_(bm_access_load_1)(bm2, make_address(1, 0) + 7);
170 assert(! DRD_(bm_equal)(bm1, bm2));
171 assert(! DRD_(bm_equal)(bm2, bm1));
172 DRD_(bm_access_load_1)(bm2, 7);
173 assert(! DRD_(bm_equal)(bm1, bm2));
174 assert(! DRD_(bm_equal)(bm2, bm1));
176 assert(! DRD_(bm_equal)(bm1, bm2));
177 assert(! DRD_(bm_equal)(bm2, bm1));
178 DRD_(bm_delete)(bm2);
187 struct bitmap* bm2;
198 bm2 = DRD_(bm_new)();
205 assert(bm_equal_print_diffs(bm1, bm2));
208 assert(bm_equal_print_diffs(bm1, bm2));
211 assert(bm_equal_print_diffs(bm1, bm2));
214 assert(bm_equal_print_diffs(bm1, bm2));
217 assert(bm_equal_print_diffs(bm1, bm2));
221 assert(bm_equal_print_diffs(bm1, bm2));
224 assert(bm_equal_print_diffs(bm1, bm2));
227 assert(bm_equal_print_diffs(bm1, bm2));
230 assert(bm_equal_print_diffs(bm1, bm2));
233 assert(bm_equal_print_diffs(bm1, bm2));
238 assert(bm_equal_print_diffs(bm1, bm2));
242 assert(bm_equal_print_diffs(bm1, bm2));
246 assert(bm_equal_print_diffs(bm1, bm2));
250 assert(bm_equal_print_diffs(bm1, bm2));
254 assert(bm_equal_print_diffs(bm1, bm2));
259 DRD_(bm_access_range_load)(bm2, 0, make_address(2, 0) + 2 * BITS_PER_UWORD);
260 DRD_(bm_access_range_store)(bm2, 0, make_address(2, 0) + 2 * BITS_PER_UWORD);
269 assert(bm_equal_print_diffs(bm1, bm2));
272 assert(bm_equal_print_diffs(bm1, bm2));
275 assert(bm_equal_print_diffs(bm1, bm2));
278 assert(bm_equal_print_diffs(bm1, bm2));
281 assert(bm_equal_print_diffs(bm1, bm2));
285 assert(bm_equal_print_diffs(bm1, bm2));
288 assert(bm_equal_print_diffs(bm1, bm2));
291 assert(bm_equal_print_diffs(bm1, bm2));
294 assert(bm_equal_print_diffs(bm1, bm2));
297 assert(bm_equal_print_diffs(bm1, bm2));
302 assert(bm_equal_print_diffs(bm1, bm2));
305 DRD_(bm_delete)(bm2);