From b2e565a3d861f43f1b88097a7eb114888030fe70 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 6 Oct 2020 18:27:11 +0200 Subject: [PATCH] add an assert on the problem id --- eo/contrib/irace/fastga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/contrib/irace/fastga.cpp b/eo/contrib/irace/fastga.cpp index 6d1b98bb0..410b1aaa4 100644 --- a/eo/contrib/irace/fastga.cpp +++ b/eo/contrib/irace/fastga.cpp @@ -307,7 +307,7 @@ int main(int argc, char* argv[]) {17, {0.5, 4, 5, 0, 100}}, }; - + assert(0 <= problem and problem < problem_config_mapping.size()); /***** IOH logger *****/ auto max_target_para = problem_config_mapping[problem].max_target;