Skip to content

Commit aa82df9

Browse files
committed
formatting
1 parent 382910b commit aa82df9

File tree

7 files changed

+26
-18
lines changed

7 files changed

+26
-18
lines changed

src/proofs/AletheProofWriter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ void AletheProofWriter::writeReluLemma(
410410
const std::shared_ptr<GroundBoundManager::GroundBoundEntry> &lemmaEntry,
411411
const ReluConstraint *relu )
412412
{
413-
414413
ASSERT( lemmaEntry->lemma && lemmaEntry->lemma->getConstraintType() == RELU );
415414
const std::shared_ptr<PLCLemma> lemma = lemmaEntry->lemma;
416415

src/proofs/AletheProofWriter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ class AletheProofWriter
7676

7777
void writeTableauAssumptions();
7878

79-
void writeReluLemma( const std::shared_ptr<GroundBoundManager::GroundBoundEntry> &lemmaEntry, const ReluConstraint *relu );
79+
void writeReluLemma( const std::shared_ptr<GroundBoundManager::GroundBoundEntry> &lemmaEntry,
80+
const ReluConstraint *relu );
8081

8182
void insertCurrentBoundsToVec( bool isUpper, Vector<double> &boundsVec );
8283

src/proofs/JsonWriter.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,13 @@ void JsonWriter::writeUnsatCertificateNode( const UnsatCertificateNode *node,
180180

181181
unsigned counter = 0;
182182
unsigned size = node->getChildren().size();
183-
List<UnsatCertificateNode *> childrenInFixedOrder = List<UnsatCertificateNode *>();
184-
const List<Tightening> &backChildTightening = node->getChildren().back()->getSplit().getBoundTightenings();
183+
List<UnsatCertificateNode *> childrenInFixedOrder = List<UnsatCertificateNode *>();
184+
const List<Tightening> &backChildTightening =
185+
node->getChildren().back()->getSplit().getBoundTightenings();
185186

186187
// Insert the inactive phase first
187-
if (backChildTightening.back()._type == Tightening::LB || backChildTightening.front()._type == Tightening::LB )
188+
if ( backChildTightening.back()._type == Tightening::LB ||
189+
backChildTightening.front()._type == Tightening::LB )
188190
{
189191
childrenInFixedOrder.append( node->getChildren().front() );
190192
childrenInFixedOrder.append( node->getChildren().back() );

src/proofs/PlcLemma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PLCLemma
3434
const Vector<SparseUnsortedList> &explanation,
3535
PiecewiseLinearFunctionType constraintType,
3636
double minTargetBound,
37-
unsigned id);
37+
unsigned id );
3838

3939
~PLCLemma();
4040

src/proofs/SmtLibWriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ void SmtLibWriter::addMaxConstraint( unsigned f,
255255
for ( unsigned i = 0; i < size - 2; ++i )
256256
assertRowLine += String( ")" );
257257

258-
assertRowLine +=
259-
" (= x" + std::to_string( f ) + " x" + std::to_string( element ) + ")";
258+
assertRowLine += " (= x" + std::to_string( f ) + " x" + std::to_string( element ) + ")";
260259

261260
instance.append( assertRowLine + "))\n" );
262261
}

src/proofs/SmtLibWriter.h

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ class SmtLibWriter
4848
/*
4949
Adds a line representing a ReLU constraint, in SMTLIB format, to the SMTLIB instance
5050
*/
51-
static void
52-
addReLUConstraint( unsigned b, unsigned f, unsigned aux, const PhaseStatus status, List<String> &instance );
51+
static void addReLUConstraint( unsigned b,
52+
unsigned f,
53+
unsigned aux,
54+
const PhaseStatus status,
55+
List<String> &instance );
5356

5457
/*
5558
Adds a line representing a sign constraint, in SMTLIB format, to the SMTLIB instance
@@ -125,13 +128,14 @@ class SmtLibWriter
125128
/*
126129
Wrapper functions calling all previous functions
127130
*/
128-
static List<String> convertToSmtLib( unsigned numOfTableauRows,
129-
unsigned numOfVariables,
130-
const Vector<double> &upperBounds,
131-
const Vector<double> &lowerBounds,
132-
const SparseMatrix *tableau,
133-
const List<Equation> &additionalEquations,
134-
const List<PiecewiseLinearConstraint *> &problemConstraints );
131+
static List<String>
132+
convertToSmtLib( unsigned numOfTableauRows,
133+
unsigned numOfVariables,
134+
const Vector<double> &upperBounds,
135+
const Vector<double> &lowerBounds,
136+
const SparseMatrix *tableau,
137+
const List<Equation> &additionalEquations,
138+
const List<PiecewiseLinearConstraint *> &problemConstraints );
135139

136140

137141
static void writeToSmtLibFile( const String &fileName,

src/proofs/UnsatCertificateNode.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ enum DelegationStatus : unsigned {
3535
class UnsatCertificateNode
3636
{
3737
public:
38-
UnsatCertificateNode( UnsatCertificateNode *parent, PiecewiseLinearCaseSplit split, unsigned splitNum, unsigned id );
38+
UnsatCertificateNode( UnsatCertificateNode *parent,
39+
PiecewiseLinearCaseSplit split,
40+
unsigned splitNum,
41+
unsigned id );
3942
~UnsatCertificateNode();
4043

4144
/*

0 commit comments

Comments
 (0)