From e336686ddb5ea59ad9db7ca5aae14b6f46d2375e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 6 Nov 2023 22:22:28 +0100 Subject: [PATCH] fix check --- run_tests.sh | 2 +- src/edmonds.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index fa95c9d..678a23f 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -5,7 +5,7 @@ SUCC=() FAILED=() while read -r instance opt; do - line=($(./build/main-g $GRAPHS/$instance | grep edge)) + line=($(./cmake-build-release/matching $GRAPHS/$instance | grep edge)) result=${line[3]} if [ "$result" -eq "$opt" ]; then diff --git a/src/edmonds.cpp b/src/edmonds.cpp index e9db6f0..003c803 100644 --- a/src/edmonds.cpp +++ b/src/edmonds.cpp @@ -66,7 +66,7 @@ void check_integrity(GraphAttributes const & attrs) assert(attrs.phi[cur_node] != cur_node); assert(get_rho(attrs, attrs.phi[cur_node]) == get_rho(attrs,cur_node)); - cur_node = attrs.mu[attrs.phi[cur_node]]; + cur_node = attrs.phi[cur_node]; } }