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
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index d843f34..35eb1dd 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,4 +1,6 @@
-
+
+
+
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1779543..d377cc6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,16 @@ cmake_minimum_required(VERSION 3.30)
project(TP1)
set(CMAKE_CXX_STANDARD 20)
+add_compile_options(-fsanitize=address)
+add_link_options(-fsanitize=address)
+set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
+set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
add_executable(TP1 main.cpp G990.cpp G990.h R234.cpp R234.cpp X212.cpp X212.h X213.cpp X213.h X215.cpp X215.h
W000.cpp
- W000.h)
+ W000.h
+ Compteur.cpp
+ Compteur.h
+ TesteurXBots.cpp
+ TesteurXBots.h
+)
diff --git a/Compteur.cpp b/Compteur.cpp
new file mode 100644
index 0000000..2a88cf6
--- /dev/null
+++ b/Compteur.cpp
@@ -0,0 +1,34 @@
+//
+// Created by Louis Gallet on 24/01/2025.
+//
+
+#include "Compteur.h"
+
+int Compteur::constructeur = 0;
+int Compteur::destructeur = 0;
+int Compteur::constructeurCopie = 0;
+
+void Compteur::ajouterConstructeur()
+{
+ constructeur++;
+}
+
+void Compteur::ajouterConstructeurCopie()
+{
+ constructeurCopie++;
+}
+
+void Compteur::ajouterDestructeur()
+{
+ destructeur++;
+}
+
+string Compteur::getInformation()
+{
+ string info = "\n\n-------------------------------\n";
+ info += (" NB constructeurs : " + to_string(Compteur::constructeur) + "\n");
+ info += (" NB constructeurs copie : " + to_string(Compteur::constructeurCopie) + "\n");
+ info += (" NB destructeurs : " + to_string(Compteur::destructeur) + "\n");
+
+ return info;
+}
diff --git a/Compteur.h b/Compteur.h
new file mode 100644
index 0000000..e109eb6
--- /dev/null
+++ b/Compteur.h
@@ -0,0 +1,32 @@
+//
+// Created by Louis Gallet on 24/01/2025.
+//
+
+#ifndef COMPTEUR_H
+#define COMPTEUR_H
+
+#include