Skip to content

Commit 25c32cc

Browse files
committed
Cleanup chrono includes
With Ubuntu 22.04 GitHub runner image 20221119.2 there appears to be some libclang difference so that include-what-you-use newly started suggesting `bits/chrono` instead of `chrono` (which is spurious); nevertheless, some of the uses of `#include <chrono>` indeed were unnecessary. Fixes: #7383
1 parent a042d91 commit 25c32cc

11 files changed

+15
-28
lines changed

src/goto-checker/bmc_util.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_BMC_UTIL_H
1313
#define CPROVER_GOTO_CHECKER_BMC_UTIL_H
1414

15-
#include <chrono>
16-
#include <memory>
17-
18-
#include <goto-symex/build_goto_trace.h>
19-
2015
#include <goto-instrument/unwindset.h>
16+
#include <goto-symex/build_goto_trace.h>
2117

2218
#include "incremental_goto_checker.h"
2319
#include "properties.h"
2420

21+
#include <chrono> // IWYU pragma: keep
22+
#include <memory>
23+
2524
class decision_proceduret;
2625
class goto_symex_property_decidert;
2726
class goto_tracet;

src/goto-checker/multi_path_symex_checker.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Author: Daniel Kroening, Peter Schrammel
1111

1212
#include "multi_path_symex_checker.h"
1313

14-
#include <chrono>
15-
1614
#include <util/ui_message.h>
1715

1816
#include <goto-symex/solver_hardness.h>

src/goto-checker/multi_path_symex_checker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_CHECKER_H
1313
#define CPROVER_GOTO_CHECKER_MULTI_PATH_SYMEX_CHECKER_H
1414

15-
#include <chrono>
16-
1715
#include "fault_localization_provider.h"
1816
#include "goto_symex_property_decider.h"
1917
#include "goto_trace_provider.h"
2018
#include "multi_path_symex_only_checker.h"
2119
#include "witness_provider.h"
2220

21+
#include <chrono> // IWYU pragma: keep
22+
2323
/// Performs a multi-path symbolic execution using goto-symex
2424
/// and calls a SAT/SMT solver to check the status of the properties.
2525
class multi_path_symex_checkert : public multi_path_symex_only_checkert,

src/goto-checker/multi_path_symex_only_checker.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Author: Daniel Kroening, Peter Schrammel
1616
#include <goto-symex/show_program.h>
1717
#include <goto-symex/show_vcc.h>
1818

19-
#include <chrono>
20-
2119
#include "bmc_util.h"
2220

2321
multi_path_symex_only_checkert::multi_path_symex_only_checkert(

src/goto-checker/single_loop_incremental_symex_checker.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Author: Daniel Kroening, Peter Schrammel
1313

1414
#include "single_loop_incremental_symex_checker.h"
1515

16-
#include <chrono>
17-
1816
#include <util/structured_data.h>
1917

2018
#include <goto-symex/slice.h>

src/goto-checker/single_path_symex_checker.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_CHECKER_H
1313
#define CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_CHECKER_H
1414

15-
#include <chrono>
16-
1715
#include "goto_symex_property_decider.h"
1816
#include "goto_trace_provider.h"
1917
#include "single_path_symex_only_checker.h"

src/goto-checker/single_path_symex_only_checker.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Author: Daniel Kroening, Peter Schrammel
1111

1212
#include "single_path_symex_only_checker.h"
1313

14-
#include <chrono>
15-
1614
#include <util/ui_message.h>
1715

1816
#include <goto-symex/path_storage.h>

src/goto-checker/single_path_symex_only_checker.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ Author: Daniel Kroening, Peter Schrammel
1212
#ifndef CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H
1313
#define CPROVER_GOTO_CHECKER_SINGLE_PATH_SYMEX_ONLY_CHECKER_H
1414

15-
#include "incremental_goto_checker.h"
16-
15+
#include <goto-instrument/unwindset.h>
1716
#include <goto-symex/path_storage.h>
1817

19-
#include <goto-instrument/unwindset.h>
18+
#include "incremental_goto_checker.h"
2019

21-
#include <chrono>
20+
#include <chrono> // IWYU pragma: keep
2221

2322
class symex_bmct;
2423

src/goto-checker/symex_coverage.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Date: March 2016
2323
#include <langapi/language_util.h>
2424
#include <linking/static_lifetime_init.h>
2525

26-
#include <chrono>
27-
#include <ctime>
26+
#include <chrono> // IWYU pragma: keep
2827
#include <fstream> // IWYU pragma: keep
2928
#include <iostream>
3029

src/goto-symex/symex_target_equation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Author: Daniel Kroening, [email protected]
1212

1313
#include "symex_target_equation.h"
1414

15-
#include <chrono>
16-
1715
#include <util/std_expr.h>
1816

1917
#include "solver_hardness.h"
2018
#include "ssa_step.h"
2119

20+
#include <chrono> // IWYU pragma: keep
21+
2222
static std::function<void(solver_hardnesst &)>
2323
hardness_register_ssa(std::size_t step_index, const SSA_stept &step)
2424
{

src/solvers/prop/prop_conv_solver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Author: Daniel Kroening, [email protected]
88

99
#include "prop_conv_solver.h"
1010

11-
#include <algorithm>
12-
#include <chrono>
13-
1411
#include "literal_expr.h"
1512

13+
#include <algorithm>
14+
#include <chrono> // IWYU pragma: keep
15+
1616
bool prop_conv_solvert::is_in_conflict(const exprt &expr) const
1717
{
1818
return prop.is_in_conflict(to_literal_expr(expr).get_literal());

0 commit comments

Comments
 (0)