From cd9d09283d88e4510c56a467498f86dd5dfbe38c Mon Sep 17 00:00:00 2001
From: Alexander Beischl <alexander.beischl@tum.de>
Date: Thu, 19 Nov 2020 17:43:47 +0100
Subject: [PATCH] Update exercise and fix CI

---
 .gitlab-ci.yml | 2 +-
 src/main.cpp   | 4 ++--
 src/sum.cpp    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6162824..9f110fa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ test:
         - cd build/debug
         - cmake -DCMAKE_BUILD_TYPE=Debug ../..
         - make -j8
-        - ./test_all
+        - ASAN_OPTIONS=detect_leaks=0 ./test_all
     cache:
         key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
         paths:
diff --git a/src/main.cpp b/src/main.cpp
index c49f858..511348b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,7 +21,7 @@ int main(int argc, char* argv[]) {
 
     const auto start = high_resolution_clock::now();
 
-    //-- TODO exercise 3.4
+    //-- TODO exercise 3.5
     // your code goes here
     //--
 
@@ -35,7 +35,7 @@ int main(int argc, char* argv[]) {
             .count();
     std::cout << "duration: " << duration << " ms" << std::endl;
 
-    //-- TODO exercise 3.4
+    //-- TODO exercise 3.5
     // cleanup
     //--
 
diff --git a/src/sum.cpp b/src/sum.cpp
index 812794b..7641fdc 100644
--- a/src/sum.cpp
+++ b/src/sum.cpp
@@ -14,7 +14,7 @@ int64_t ToInt(std::string_view s) {
 // block : memory block in which to search
 // return : 64-bit integer with all the matches as seen in the lecture
 inline uint64_t get_matches(uint64_t pattern, uint64_t block) {
-    //-- TODO exercise 3.4 part 2
+    //-- TODO exercise 3.5 part 2
     // your code goes here
     //--
 }
@@ -30,7 +30,7 @@ ssize_t find_first(uint64_t pattern, const char* begin, size_t len) {
 
     // Hint: You may assume that reads from 'begin' within [len, len + 8) yield
     // zero
-    //-- TODO exercise 3.4
+    //-- TODO exercise 3.5
     // your code goes here
     //--
     return -1;
-- 
GitLab