Skip to content

remove an include from goto-programs/goto_program.h #6312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jbmc/src/java_bytecode/java_local_variable_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Author: Chris Smowton, [email protected]
#include <util/arith_tools.h>
#include <util/invariant.h>
#include <util/string2int.h>
#include <util/symbol_table.h>

#include <iostream>

Expand Down
1 change: 1 addition & 0 deletions jbmc/unit/java-testing-utils/require_goto_statements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Author: Diffblue Ltd.
#include <util/expr_util.h>
#include <util/pointer_expr.h>
#include <util/suffix.h>
#include <util/symbol_table.h>

/// Expand value of a function to include all child codets
/// \param function_value: The value of the function (e.g. got by looking up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Author: Diffblue Ltd.

#include <util/byte_operators.h>
#include <util/pointer_expr.h>
#include <util/symbol_table.h>

TEST_CASE("java trace validation", "[core][java_trace_validation]")
{
Expand Down
1 change: 1 addition & 0 deletions src/analyses/local_bitvector_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Author: Daniel Kroening, [email protected]

#include <util/pointer_expr.h>
#include <util/std_code.h>
#include <util/symbol_table.h>

void local_bitvector_analysist::flagst::print(std::ostream &out) const
{
Expand Down
2 changes: 2 additions & 0 deletions src/analyses/local_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Author: Daniel Kroening, [email protected]

#include <goto-programs/goto_program.h>

#include <map>

class local_cfgt
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/analyses/local_safe_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Author: Diffblue Ltd
#include <util/expr_iterator.h>
#include <util/expr_util.h>
#include <util/format_expr.h>
#include <util/symbol_table.h>

/// Return structure for `get_null_checked_expr` and
/// `get_conditional_checked_expr`
Expand Down
2 changes: 2 additions & 0 deletions src/analyses/local_safe_pointers.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Author: Diffblue Ltd

#include <util/pointer_expr.h>

#include <map>

/// A very simple, cheap analysis to determine when dereference operations are
/// trivially guarded by a check against a null pointer access.
/// In the interests of a very cheap analysis we only search for very local
Expand Down
1 change: 1 addition & 0 deletions src/analyses/uncaught_exceptions_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Author: Cristina David
#include "uncaught_exceptions_analysis.h"

#include <util/namespace.h>
#include <util/symbol_table.h>

#include <goto-programs/goto_functions.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <util/simplify_expr.h>
#include <util/simplify_expr_class.h>
#include <util/simplify_utils.h>
#include <util/symbol_table.h>

#include <algorithm>
#include <map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Date: April 2016
#include "variable_sensitivity_domain.h"

#include <util/cprover_prefix.h>
#include <util/symbol_table.h>

#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions src/cbmc/c_test_input_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Author: Daniel Kroening, Peter Schrammel
#include <util/json_stream.h>
#include <util/options.h>
#include <util/string_utils.h>
#include <util/symbol.h>
#include <util/ui_message.h>
#include <util/xml.h>

Expand Down
1 change: 1 addition & 0 deletions src/goto-checker/symex_coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Date: March 2016
#include <iostream>

#include <util/string2int.h>
#include <util/symbol.h>
#include <util/xml.h>

#include <langapi/language_util.h>
Expand Down
1 change: 1 addition & 0 deletions src/goto-instrument/cover_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Author: Peter Schrammel
#include "cover_filter.h"

#include <util/prefix.h>
#include <util/symbol.h>

#include <linking/static_lifetime_init.h>

Expand Down
2 changes: 2 additions & 0 deletions src/goto-instrument/cover_instrument.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Author: Peter Schrammel

#include <memory>

#include <util/symbol_table.h>

#include <goto-programs/goto_program.h>

enum class coverage_criteriont;
Expand Down
2 changes: 2 additions & 0 deletions src/goto-instrument/function_modifies.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Author: Daniel Kroening, [email protected]

#include <goto-programs/goto_program.h>

#include <map>

class goto_functionst;
class local_may_aliast;

Expand Down
1 change: 1 addition & 0 deletions src/goto-instrument/splice_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Date: July 2017

#include <util/message.h>
#include <util/string_utils.h>
#include <util/symbol_table.h>

#include <goto-programs/goto_functions.h>

Expand Down
1 change: 1 addition & 0 deletions src/goto-instrument/wmm/fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Date: February 2012
#include "fence.h"

#include <util/namespace.h>
#include <util/symbol.h>

bool is_fence(
const goto_programt::instructiont &instruction,
Expand Down
3 changes: 2 additions & 1 deletion src/goto-instrument/wmm/shared_buffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ Author: Daniel Kroening, [email protected]
#include <set>

#include <goto-programs/goto_program.h>
#include <util/namespace.h>
#include <util/cprover_prefix.h>
#include <util/namespace.h>
#include <util/prefix.h>
#include <util/symbol_table.h>

#include "wmm.h"

Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/builtin_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Author: Daniel Kroening, [email protected]
#include <util/prefix.h>
#include <util/rational.h>
#include <util/rational_tools.h>
#include <util/symbol_table.h>

#include <langapi/language_util.h>

Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/goto_clean_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Author: Daniel Kroening, [email protected]
#include <util/fresh_symbol.h>
#include <util/pointer_expr.h>
#include <util/std_expr.h>
#include <util/symbol.h>

symbol_exprt goto_convertt::make_compound_literal(
const exprt &expr,
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/goto_convert_exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected]
#include "goto_convert_class.h"

#include <util/std_expr.h>
#include <util/symbol_table.h>

void goto_convertt::convert_msc_try_finally(
const codet &code,
Expand Down
2 changes: 2 additions & 0 deletions src/goto-programs/goto_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Date: May 2018

#include "goto_function.h"

#include <util/symbol.h>

/// Return in \p dest the identifiers of the local variables declared in the \p
/// goto_function and the identifiers of the paramters of the \p goto_function.
void get_local_identifiers(
Expand Down
2 changes: 2 additions & 0 deletions src/goto-programs/goto_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Date: June 2003

#include "goto_functions.h"

#include <util/symbol.h>

#include <algorithm>

void goto_functionst::compute_location_numbers()
Expand Down
2 changes: 2 additions & 0 deletions src/goto-programs/goto_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Date: June 2003

#include <util/cprover_prefix.h>

#include <map>

/// A collection of goto functions
class goto_functionst
{
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/goto_inline_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Author: Daniel Kroening, [email protected]
#include <util/cprover_prefix.h>
#include <util/invariant.h>
#include <util/std_code.h>
#include <util/symbol.h>

void goto_inlinet::parameter_assignments(
const goto_programt::targett target,
Expand Down
6 changes: 6 additions & 0 deletions src/goto-programs/goto_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ Author: Daniel Kroening, [email protected]
#include <util/invariant.h>
#include <util/pointer_expr.h>
#include <util/std_expr.h>
#include <util/symbol_table.h>
#include <util/validate.h>

#include <langapi/language_util.h>

std::ostream &goto_programt::output(std::ostream &out) const
{
return output(namespacet(symbol_tablet()), irep_idt(), out);
}

/// Writes to \p out a two/three line string representation of a given
/// \p instruction. The output is of the format:
/// ```
Expand Down
8 changes: 2 additions & 6 deletions src/goto-programs/goto_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Author: Daniel Kroening, [email protected]
#include <util/namespace.h>
#include <util/source_location.h>
#include <util/std_code.h>
#include <util/symbol_table.h>

enum class validation_modet;

Expand Down Expand Up @@ -776,11 +775,8 @@ class goto_programt
const irep_idt &identifier,
std::ostream &out) const;

/// Output goto-program to given stream
std::ostream &output(std::ostream &out) const
{
return output(namespacet(symbol_tablet()), irep_idt(), out);
}
/// Output goto-program to given stream, using an empty symbol table
std::ostream &output(std::ostream &out) const;

/// Output a single instruction
std::ostream &output_instruction(
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/graphml_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Author: Daniel Kroening
#include <util/prefix.h>
#include <util/ssa_expr.h>
#include <util/string_constant.h>
#include <util/symbol_table.h>

#include <langapi/language_util.h>
#include <langapi/mode.h>
Expand Down
5 changes: 3 additions & 2 deletions src/goto-programs/interpreter_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ Author: Daniel Kroening, [email protected]

#include <util/arith_tools.h>
#include <util/invariant.h>
#include <util/std_types.h>
#include <util/sparse_vector.h>
#include <util/message.h>
#include <util/sparse_vector.h>
#include <util/std_types.h>
#include <util/symbol_table.h>

#include "goto_functions.h"
#include "goto_trace.h"
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/json_goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Author: Daniel Kroening

#include <util/invariant.h>
#include <util/simplify_expr.h>
#include <util/symbol.h>

#include <langapi/language_util.h>

Expand Down
2 changes: 1 addition & 1 deletion src/goto-programs/rebuild_goto_start_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Author: Thomas Kiley, [email protected]
#include "rebuild_goto_start_function.h"

#include <util/prefix.h>
#include <util/symbol.h>
#include <util/symbol_table.h>

#include <langapi/mode.h>
#include <langapi/language.h>
Expand Down
1 change: 1 addition & 0 deletions src/goto-programs/remove_virtual_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Author: Daniel Kroening, [email protected]
#include <util/expr_util.h>
#include <util/fresh_symbol.h>
#include <util/prefix.h>
#include <util/symbol_table.h>

#include "class_hierarchy.h"
#include "class_identifier.h"
Expand Down
3 changes: 3 additions & 0 deletions src/goto-programs/remove_virtual_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ Date: April 2016

#include "goto_program.h"

#include <map>

class class_hierarchyt;
class goto_functionst;
class goto_model_functiont;
class goto_modelt;
class symbol_tablet;
class symbol_table_baset;

// For all of the following the class-hierarchy and non-class-hierarchy
Expand Down
2 changes: 2 additions & 0 deletions src/goto-programs/string_abstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Author: Daniel Kroening, [email protected]

#include "goto_function.h"

#include <map>

class goto_functionst;
class goto_modelt;
class message_handlert;
Expand Down
1 change: 1 addition & 0 deletions src/goto-symex/build_goto_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Author: Daniel Kroening
#include <util/arith_tools.h>
#include <util/byte_operators.h>
#include <util/simplify_expr.h>
#include <util/symbol.h>

#include <goto-programs/goto_functions.h>

Expand Down
1 change: 1 addition & 0 deletions src/jsil/jsil_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Author: Michael Tautschnig, [email protected]
#include <util/config.h>
#include <util/message.h>
#include <util/range.h>
#include <util/symbol_table.h>

#include <goto-programs/adjust_float_expressions.h>
#include <goto-programs/goto_functions.h>
Expand Down
2 changes: 2 additions & 0 deletions src/json-symtab-language/json_symtab_language.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ Author: Chris Smowton, [email protected]

#include <goto-programs/goto_functions.h>
#include <langapi/language.h>

#include <util/json.h>
#include <util/make_unique.h>
#include <util/symbol_table.h>

class json_symtab_languaget : public languaget
{
Expand Down
1 change: 1 addition & 0 deletions src/pointer-analysis/value_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Author: Daniel Kroening, [email protected]
#include <util/prefix.h>
#include <util/range.h>
#include <util/simplify_expr.h>
#include <util/symbol_table.h>

#ifdef DEBUG
#include <iostream>
Expand Down
2 changes: 2 additions & 0 deletions src/pointer-analysis/value_set_analysis_fi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Author: Daniel Kroening, [email protected]

#include "value_set_analysis_fi.h"

#include <util/symbol_table.h>

void value_set_analysis_fit::initialize(
const goto_programt &goto_program)
{
Expand Down
1 change: 1 addition & 0 deletions src/pointer-analysis/value_set_dereference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Author: Daniel Kroening, [email protected]
#include <util/pointer_predicates.h>
#include <util/range.h>
#include <util/simplify_expr.h>
#include <util/symbol_table.h>

#include <deque>

Expand Down
1 change: 1 addition & 0 deletions src/statement-list/statement_list_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Author: Matthias Weiss, [email protected]
#include <util/message.h>
#include <util/pointer_expr.h>
#include <util/std_code.h>
#include <util/symbol_table.h>

/// Postfix for the artificial data block that is created when calling a main
/// symbol that is a function block.
Expand Down
2 changes: 1 addition & 1 deletion src/statement-list/statement_list_entry_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Author: Matthias Weiss, [email protected]
#ifndef CPROVER_STATEMENT_LIST_STATEMENT_LIST_ENTRY_POINT_H
#define CPROVER_STATEMENT_LIST_STATEMENT_LIST_ENTRY_POINT_H

class symbol_tablet;
class message_handlert;
class symbol_tablet;

/// Creates a new entry point for the Statement List language.
/// \param [out] symbol_table: Symbol table of the current TIA program. Gets
Expand Down
3 changes: 2 additions & 1 deletion unit/analyses/ai/ai_simplify_lhs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Author: Diffblue Ltd.
#include <util/c_types.h>
#include <util/config.h>
#include <util/namespace.h>
#include <util/ui_message.h>
#include <util/simplify_expr.h>
#include <util/symbol_table.h>
#include <util/ui_message.h>

class constant_simplification_mockt:public ai_domain_baset
{
Expand Down
Loading