Skip to content

Commit fd65126

Browse files
authored
Merge pull request #6099 from diffblue/add_algorithm_include
add missing <algorithm> includes
2 parents 6982b9d + ec1a3cd commit fd65126

10 files changed

+20
-0
lines changed

src/analyses/variable-sensitivity/abstract_object_set.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
\*******************************************************************/
88

99
#include <analyses/variable-sensitivity/abstract_object_set.h>
10+
1011
#include <util/interval.h>
1112
#include <util/string_utils.h>
1213

14+
#include <algorithm>
15+
1316
static bool by_length(const std::string &lhs, const std::string &rhs)
1417
{
1518
if(lhs.size() < rhs.size())

src/analyses/variable-sensitivity/abstract_value_object.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <util/make_unique.h>
2222
#include <util/simplify_expr.h>
2323

24+
#include <algorithm>
25+
2426
class empty_index_ranget : public index_range_implementationt
2527
{
2628
public:

src/analyses/variable-sensitivity/context_abstract_object.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include "abstract_object_statistics.h"
1212

13+
#include <algorithm>
14+
1315
abstract_object_pointert context_abstract_objectt::get_child() const
1416
{
1517
return child_abstract_object;

src/analyses/variable-sensitivity/value_set_abstract_object.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <util/make_unique.h>
1818

19+
#include <algorithm>
20+
1921
#include "abstract_environment.h"
2022

2123
static index_range_implementation_ptrt

src/analyses/variable-sensitivity/value_set_abstract_value.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <ansi-c/expr2c.h>
1212
#include <util/simplify_expr.h>
1313

14+
#include <algorithm>
15+
1416
value_set_abstract_valuet::value_set_abstract_valuet(
1517
const typet &type,
1618
bool top,

src/analyses/variable-sensitivity/variable_sensitivity_domain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Date: April 2016
1212

1313
#include <util/cprover_prefix.h>
1414

15+
#include <algorithm>
16+
1517
#ifdef DEBUG
1618
# include <iostream>
1719
#endif

src/analyses/variable-sensitivity/write_location_context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include "write_location_context.h"
1010

11+
#include <algorithm>
12+
1113
/**
1214
* Update the location context for an abstract object, potentially
1315
* propagating the update to any children of this abstract object.

src/goto-harness/goto_harness_parse_options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Author: Diffblue Ltd.
88

99
#include "goto_harness_parse_options.h"
1010

11+
#include <algorithm>
1112
#include <fstream>
1213
#include <set>
1314
#include <string>

src/goto-instrument/cover_instrument_other.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Author: Daniel Kroening
1515

1616
#include <langapi/language_util.h>
1717

18+
#include <algorithm>
19+
1820
void cover_path_instrumentert::instrument(
1921
const irep_idt &,
2022
goto_programt &,

src/goto-programs/ensure_one_backedge_per_target.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Author: Diffblue Ltd.
1313

1414
#include "goto_model.h"
1515

16+
#include <algorithm>
17+
1618
static bool location_number_less_than(
1719
const goto_programt::targett &a,
1820
const goto_programt::targett &b)

0 commit comments

Comments
 (0)