From: Aina Niemetz Date: Wed, 9 Dec 2020 01:03:49 +0000 (-0800) Subject: ite_utilities: Fix infinite loop in compressTerm. (#5629) X-Git-Tag: cvc5-1.0.0~2474 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4b2f061182734c8c8efdea38e7afeaca7122fad;p=cvc5.git ite_utilities: Fix infinite loop in compressTerm. (#5629) Fixes #4610. --- 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; }