Skip to content

Commit 4996502

Browse files
author
Daniel Kroening
committed
get rid of conjunction and disjunction taking initializer_lists
1 parent eac49f2 commit 4996502

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

src/util/std_expr.cpp

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,6 @@ exprt disjunction(const exprt::operandst &op)
6464

6565
/*******************************************************************\
6666
67-
Function: disjunction
68-
69-
Inputs:
70-
71-
Outputs:
72-
73-
Purpose:
74-
75-
\*******************************************************************/
76-
77-
exprt disjunction(const std::initializer_list<exprt> &op)
78-
{
79-
if(op.size()==0)
80-
return false_exprt();
81-
else if(op.size()==1)
82-
return *op.begin();
83-
else
84-
{
85-
or_exprt result;
86-
result.operands()=exprt::operandst(op);
87-
return result;
88-
}
89-
}
90-
91-
/*******************************************************************\
92-
9367
Function: conjunction
9468
9569
Inputs:
@@ -116,32 +90,6 @@ exprt conjunction(const exprt::operandst &op)
11690

11791
/*******************************************************************\
11892
119-
Function: conjunction
120-
121-
Inputs:
122-
123-
Outputs:
124-
125-
Purpose:
126-
127-
\*******************************************************************/
128-
129-
exprt conjunction(const std::initializer_list<exprt> &op)
130-
{
131-
if(op.size()==0)
132-
return true_exprt();
133-
else if(op.size()==1)
134-
return *op.begin();
135-
else
136-
{
137-
and_exprt result;
138-
result.operands()=exprt::operandst(op);
139-
return result;
140-
}
141-
}
142-
143-
/*******************************************************************\
144-
14593
Function: build_object_descriptor_rec
14694
14795
Inputs:

src/util/std_expr.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Author: Daniel Kroening, [email protected]
1818

1919
#include <cassert>
2020

21-
#include <initializer_list>
22-
2321
#include "std_types.h"
2422

2523
/*! \defgroup gr_std_expr Conversion to specific expressions
@@ -1724,13 +1722,6 @@ class and_exprt:public exprt
17241722

17251723
exprt conjunction(const exprt::operandst &);
17261724

1727-
/*! 1) generates a conjunction for two or more operands
1728-
* 2) for one operand, returns the operand
1729-
* 3) returns true otherwise
1730-
*/
1731-
1732-
exprt conjunction(const std::initializer_list<exprt> &);
1733-
17341725
/*! \brief Cast a generic exprt to a \ref and_exprt
17351726
*
17361727
* This is an unchecked conversion. \a expr must be known to be \ref
@@ -1833,13 +1824,6 @@ class or_exprt:public exprt
18331824

18341825
exprt disjunction(const exprt::operandst &);
18351826

1836-
/*! 1) generates a disjunction for two or more operands
1837-
* 2) for one operand, returns the operand
1838-
* 3) returns false otherwise
1839-
*/
1840-
1841-
exprt disjunction(const std::initializer_list<exprt> &);
1842-
18431827
/*! \brief Cast a generic exprt to a \ref or_exprt
18441828
*
18451829
* This is an unchecked conversion. \a expr must be known to be \ref

0 commit comments

Comments
 (0)