ite_utilities: Fix infinite loop in compressTerm. (#5629)
authorAina Niemetz <aina.niemetz@gmail.com>
Wed, 9 Dec 2020 01:03:49 +0000 (17:03 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 01:03:49 +0000 (17:03 -0800)
Fixes #4610.

src/preprocessing/util/ite_utilities.cpp

index c9bf283ac490c9a36ab90ed5f6eea2fa12a010ab..7e05af6981f9c28f75ea6f55e8f18ce3fcdf2d6c 100644 (file)
@@ -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;
     }