summaryrefslogtreecommitdiff
path: root/src/theory/arith/simplex.cpp
diff options
context:
space:
mode:
authorAndres Notzli <andres.noetzli@gmail.com>2016-12-07 18:05:54 -0800
committerAndres Notzli <andres.noetzli@gmail.com>2016-12-08 20:13:16 -0800
commit41de627bbda41923f6b5115700b5b98ce06a281a (patch)
tree9412a4a1c457b39246675265180ebcc09c9aebd4 /src/theory/arith/simplex.cpp
parentbe7662bdcd3881d349bfba4c959a0c2be4159ce9 (diff)
Fix initialization order
This commit addresses the following warning: ``` warning: field 'd_negOne' will be initialized after field 'd_pivots' [-Wreorder] ```
Diffstat (limited to 'src/theory/arith/simplex.cpp')
-rw-r--r--src/theory/arith/simplex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/arith/simplex.cpp b/src/theory/arith/simplex.cpp
index fecb06811..9dd13711c 100644
--- a/src/theory/arith/simplex.cpp
+++ b/src/theory/arith/simplex.cpp
@@ -30,7 +30,8 @@ namespace arith {
SimplexDecisionProcedure::SimplexDecisionProcedure(LinearEqualityModule& linEq, ErrorSet& errors, RaiseConflict conflictChannel, TempVarMalloc tvmalloc)
- : d_conflictVariables()
+ : d_pivots(0)
+ , d_conflictVariables()
, d_linEq(linEq)
, d_variables(d_linEq.getVariables())
, d_tableau(d_linEq.getTableau())
@@ -43,7 +44,6 @@ SimplexDecisionProcedure::SimplexDecisionProcedure(LinearEqualityModule& linEq,
, d_zero(0)
, d_posOne(1)
, d_negOne(-1)
- , d_pivots(0)
{
d_heuristicRule = options::arithErrorSelectionRule();
d_errorSet.setSelectionRule(d_heuristicRule);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback