From d4b2f061182734c8c8efdea38e7afeaca7122fad Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Tue, 8 Dec 2020 17:03:49 -0800 Subject: [PATCH] ite_utilities: Fix infinite loop in compressTerm. (#5629) Fixes #4610. --- src/preprocessing/util/ite_utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocessing/util/ite_utilities.cpp b/src/preprocessing/util/ite_utilities.cpp index c9bf283ac..7e05af698 100644 --- a/src/preprocessing/util/ite_utilities.cpp +++ b/src/preprocessing/util/ite_utilities.cpp @@ -450,7 +450,7 @@ Node ITECompressor::compressTerm(Node toCompress) if (cmpCnd.isConst()) { Node branch = (cmpCnd == d_true) ? toCompress[1] : toCompress[2]; - Node res = compressTerm(toCompress); + Node res = compressTerm(branch); d_compressed[toCompress] = res; return res; } -- 2.30.2