From 630a5bdf06d59b8340fb4bfc0e692cbcf094026a Mon Sep 17 00:00:00 2001 From: mzuenni Date: Thu, 10 Jul 2025 17:40:18 +0200 Subject: run with sanitizer --- test/datastructures/LCT.cpp | 2 +- test/datastructures/dynamicConvexHull.cpp | 2 +- test/datastructures/fenwickTree.cpp | 2 +- test/datastructures/fenwickTree2.cpp | 2 +- test/datastructures/lazyPropagation.cpp | 2 +- test/datastructures/lichao.cpp | 2 +- test/datastructures/monotonicConvexHull.cpp | 2 +- test/datastructures/segmentTree.cpp | 4 ++-- test/datastructures/sparseTable.cpp | 2 +- test/datastructures/sparseTableDisjoint.cpp | 2 +- test/datastructures/treap.cpp | 2 +- test/datastructures/unionFind.cpp | 2 +- test/datastructures/waveletTree.cpp | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test/datastructures') diff --git a/test/datastructures/LCT.cpp b/test/datastructures/LCT.cpp index 58d76d7..a1e37eb 100644 --- a/test/datastructures/LCT.cpp +++ b/test/datastructures/LCT.cpp @@ -194,5 +194,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/dynamicConvexHull.cpp b/test/datastructures/dynamicConvexHull.cpp index e0345af..335dbae 100644 --- a/test/datastructures/dynamicConvexHull.cpp +++ b/test/datastructures/dynamicConvexHull.cpp @@ -63,5 +63,5 @@ int main() { stress_test(100); stress_test(1'000); stress_test(1'000'000); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/fenwickTree.cpp b/test/datastructures/fenwickTree.cpp index c1ef6bf..62e6392 100644 --- a/test/datastructures/fenwickTree.cpp +++ b/test/datastructures/fenwickTree.cpp @@ -54,5 +54,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/fenwickTree2.cpp b/test/datastructures/fenwickTree2.cpp index 89d5b0f..16caa1d 100644 --- a/test/datastructures/fenwickTree2.cpp +++ b/test/datastructures/fenwickTree2.cpp @@ -56,5 +56,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/lazyPropagation.cpp b/test/datastructures/lazyPropagation.cpp index feb07f0..22b75ba 100644 --- a/test/datastructures/lazyPropagation.cpp +++ b/test/datastructures/lazyPropagation.cpp @@ -57,5 +57,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/lichao.cpp b/test/datastructures/lichao.cpp index f4b797b..9cf770f 100644 --- a/test/datastructures/lichao.cpp +++ b/test/datastructures/lichao.cpp @@ -71,5 +71,5 @@ int main() { stress_test(100); stress_test(1'000); stress_test(1'000'000); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/monotonicConvexHull.cpp b/test/datastructures/monotonicConvexHull.cpp index 0415068..9490d7e 100644 --- a/test/datastructures/monotonicConvexHull.cpp +++ b/test/datastructures/monotonicConvexHull.cpp @@ -130,5 +130,5 @@ int main() { stress_test_independent(100); stress_test_independent(1'000); stress_test_independent(1'000'000); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/segmentTree.cpp b/test/datastructures/segmentTree.cpp index fbac13e..39cf20f 100644 --- a/test/datastructures/segmentTree.cpp +++ b/test/datastructures/segmentTree.cpp @@ -115,8 +115,8 @@ void performance_test2() { int main() { cerr << "point update + range query:" << endl; stress_test1(); - performance_test1(); + if (!sanitize) performance_test1(); cerr << "range update + point query" << endl; stress_test2(); - performance_test2(); + if (!sanitize) performance_test2(); } diff --git a/test/datastructures/sparseTable.cpp b/test/datastructures/sparseTable.cpp index 7577694..9a7fac5 100644 --- a/test/datastructures/sparseTable.cpp +++ b/test/datastructures/sparseTable.cpp @@ -47,5 +47,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/sparseTableDisjoint.cpp b/test/datastructures/sparseTableDisjoint.cpp index 77bb005..1147b42 100644 --- a/test/datastructures/sparseTableDisjoint.cpp +++ b/test/datastructures/sparseTableDisjoint.cpp @@ -44,5 +44,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/treap.cpp b/test/datastructures/treap.cpp index 2fc9d63..9a3527e 100644 --- a/test/datastructures/treap.cpp +++ b/test/datastructures/treap.cpp @@ -81,5 +81,5 @@ int main() { stress_test(10000, 10); stress_test(1000, 100); stress_test(100, 10000); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/unionFind.cpp b/test/datastructures/unionFind.cpp index 2afdc86..50ad50d 100644 --- a/test/datastructures/unionFind.cpp +++ b/test/datastructures/unionFind.cpp @@ -105,5 +105,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } diff --git a/test/datastructures/waveletTree.cpp b/test/datastructures/waveletTree.cpp index d294835..4c51b60 100644 --- a/test/datastructures/waveletTree.cpp +++ b/test/datastructures/waveletTree.cpp @@ -71,5 +71,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } -- cgit v1.2.3