Lines Matching refs:set_a

103   PetscInt64 *set_a, *set_b;  in test_empty_empty()  local
108 PetscCall(PetscMalloc1(1, &set_a)); in test_empty_empty()
111 set_a[0] = 0; in test_empty_empty()
115 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_empty_empty()
116 PetscCall(PrintSet(set_a)); in test_empty_empty()
117 PetscCall(AssertSetsEqual(set_a, truth)); in test_empty_empty()
119 PetscCall(PetscFree(set_a)); in test_empty_empty()
127 PetscInt64 *set_a, *set_b; in test_a_empty() local
132 PetscCall(PetscMalloc1(1, &set_a)); in test_a_empty()
135 set_a[0] = 0; in test_a_empty()
140 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_a_empty()
141 PetscCall(PrintSet(set_a)); in test_a_empty()
142 PetscCall(AssertSetsEqual(set_a, truth)); in test_a_empty()
144 PetscCall(PetscFree(set_a)); in test_a_empty()
152 PetscInt64 *set_a, *set_b; in test_b_empty() local
157 PetscCall(PetscMalloc1(2, &set_a)); in test_b_empty()
160 set_a[0] = 1; in test_b_empty()
161 set_a[1] = 1; in test_b_empty()
165 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_b_empty()
166 PetscCall(PrintSet(set_a)); in test_b_empty()
167 PetscCall(AssertSetsEqual(set_a, truth)); in test_b_empty()
169 PetscCall(PetscFree(set_a)); in test_b_empty()
177 PetscInt64 *set_a, *set_b; in test_identical() local
182 PetscCall(PetscMalloc1(4, &set_a)); in test_identical()
185 set_a[0] = 3; in test_identical()
186 set_a[1] = 1; in test_identical()
187 set_a[2] = 4; in test_identical()
188 set_a[3] = 9; in test_identical()
195 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_identical()
196 PetscCall(PrintSet(set_a)); in test_identical()
197 PetscCall(AssertSetsEqual(set_a, truth)); in test_identical()
199 PetscCall(PetscFree(set_a)); in test_identical()
207 PetscInt64 *set_a, *set_b; in test_disjoint() local
212 PetscCall(PetscMalloc1(4, &set_a)); in test_disjoint()
215 set_a[0] = 3; in test_disjoint()
216 set_a[1] = 1; in test_disjoint()
217 set_a[2] = 4; in test_disjoint()
218 set_a[3] = 9; in test_disjoint()
225 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_disjoint()
226 PetscCall(PrintSet(set_a)); in test_disjoint()
227 PetscCall(AssertSetsEqual(set_a, truth)); in test_disjoint()
229 PetscCall(PetscFree(set_a)); in test_disjoint()
237 PetscInt64 *set_a, *set_b; in test_single_common() local
242 PetscCall(PetscMalloc1(4, &set_a)); in test_single_common()
245 set_a[0] = 3; in test_single_common()
246 set_a[1] = 1; in test_single_common()
247 set_a[2] = 4; in test_single_common()
248 set_a[3] = 9; in test_single_common()
256 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_single_common()
257 PetscCall(PrintSet(set_a)); in test_single_common()
258 PetscCall(AssertSetsEqual(set_a, truth)); in test_single_common()
260 PetscCall(PetscFree(set_a)); in test_single_common()
268 PetscInt64 *set_a, *set_b; in test_issue_1247() local
273 PetscCall(PetscMalloc1(3, &set_a)); in test_issue_1247()
276 set_a[0] = 2; in test_issue_1247()
277 set_a[1] = 2; in test_issue_1247()
278 set_a[2] = 3; in test_issue_1247()
283 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_issue_1247()
284 PetscCall(PrintSet(set_a)); in test_issue_1247()
285 PetscCall(AssertSetsEqual(set_a, truth)); in test_issue_1247()
287 PetscCall(PetscFree(set_a)); in test_issue_1247()
295 PetscInt64 *set_a, *set_b; in test_empty_big() local
300 PetscCall(PetscMalloc1(1, &set_a)); in test_empty_big()
303 set_a[0] = 0; in test_empty_big()
305 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_empty_big()
306 PetscCall(PrintSet(set_a)); in test_empty_big()
307 PetscCall(AssertSetsEqual(set_a, truth)); in test_empty_big()
309 PetscCall(PetscFree(set_a)); in test_empty_big()
317 PetscInt64 *set_a, *set_b; in test_small_big() local
322 PetscCall(PetscMalloc1(5, &set_a)); in test_small_big()
325 set_a[0] = 4; in test_small_big()
326 set_a[1] = 1; in test_small_big()
327 set_a[2] = 4; in test_small_big()
328 set_a[3] = 8; in test_small_big()
329 set_a[4] = 9; in test_small_big()
331 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_small_big()
332 PetscCall(PrintSet(set_a)); in test_small_big()
333 PetscCall(AssertSetsEqual(set_a, truth)); in test_small_big()
335 PetscCall(PetscFree(set_a)); in test_small_big()
343 PetscInt64 *set_a, *set_b; in test_moderate_big() local
348 PetscCall(Fibonnaci(&set_a, 49)); in test_moderate_big()
351 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_moderate_big()
352 PetscCall(PrintSet(set_a)); in test_moderate_big()
353 PetscCall(AssertSetsEqual(set_a, truth)); in test_moderate_big()
355 PetscCall(PetscFree(set_a)); in test_moderate_big()
363 PetscInt64 *set_a, *set_b; in test_big_big() local
368 PetscCall(Cube(&set_a, 999)); in test_big_big()
371 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_big_big()
372 PetscCall(PrintSet(set_a)); in test_big_big()
375 PetscCall(AssertSetsEqual(set_a, truth)); in test_big_big()
377 PetscCall(PetscFree(set_a)); in test_big_big()
386 PetscInt64 *set_a, *set_b; in test_big_empty() local
391 PetscCall(Cube(&set_a, 999)); in test_big_empty()
396 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_big_empty()
397 PetscCall(PrintSet(set_a)); in test_big_empty()
398 PetscCall(AssertSetsEqual(set_a, truth)); in test_big_empty()
400 PetscCall(PetscFree(set_a)); in test_big_empty()
408 PetscInt64 *set_a, *set_b; in test_big_small() local
413 PetscCall(Cube(&set_a, 999)); in test_big_small()
422 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_big_small()
423 PetscCall(PrintSet(set_a)); in test_big_small()
424 PetscCall(AssertSetsEqual(set_a, truth)); in test_big_small()
426 PetscCall(PetscFree(set_a)); in test_big_small()
434 PetscInt64 *set_a, *set_b; in test_big_moderate() local
439 PetscCall(Cube(&set_a, 999)); in test_big_moderate()
442 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_big_moderate()
443 PetscCall(PrintSet(set_a)); in test_big_moderate()
444 PetscCall(AssertSetsEqual(set_a, truth)); in test_big_moderate()
446 PetscCall(PetscFree(set_a)); in test_big_moderate()
455 PetscInt64 *set_a, *set_b; in test_big_big_reversed() local
460 PetscCall(Cube(&set_a, 999)); in test_big_big_reversed()
463 PetscGarbageKeySortedIntersect((void *)set_b, (void *)set_a, &length, NULL); in test_big_big_reversed()
464 PetscCall(PrintSet(set_a)); in test_big_big_reversed()
467 PetscCall(AssertSetsEqual(set_a, truth)); in test_big_big_reversed()
469 PetscCall(PetscFree(set_a)); in test_big_big_reversed()