From e38ae6f0ccde395f772bb893d16954b544563549 Mon Sep 17 00:00:00 2001 From: Gleb Belov Date: Mon, 26 Aug 2024 17:50:50 +1000 Subject: [PATCH] Expression interface: fix acc:_all=0 #237 --- include/mp/flat/constr_2_expr.h | 7 ++++--- include/mp/flat/constr_keeper.h | 7 +++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/mp/flat/constr_2_expr.h b/include/mp/flat/constr_2_expr.h index 81bc5f500..8c7b929de 100644 --- a/include/mp/flat/constr_2_expr.h +++ b/include/mp/flat/constr_2_expr.h @@ -284,8 +284,9 @@ class Constraints2Expr { bool HasExpressionArgs(const LinTerms& lt) const { for (auto v: lt.vars()) - if (!MPCD( IsProperVar(v) )) + if (!MPCD( IsProperVar(v) )) { return true; + } return false; } @@ -415,9 +416,9 @@ class Constraints2Expr { result.reserve(ltin.size() - nvars); int v=0; for (size_t i=0; i