Skip to content

Commit 017cd09

Browse files
Version of value_sett::output without ns argument
This argument is unused.
1 parent a424ac9 commit 017cd09

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/pointer-analysis/value_set.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ Author: Daniel Kroening, [email protected]
2020
#include <util/prefix.h>
2121
#include <util/simplify_expr.h>
2222

23-
#include <langapi/language_util.h>
24-
#include <util/range.h>
2523
#include <goto-symex/renamed.h>
24+
#include <langapi/language_util.h>
2625
#include <util/format_expr.h>
2726
#include <util/format_type.h>
27+
#include <util/range.h>
2828

2929
#ifdef DEBUG
3030
#include <iostream>
@@ -139,6 +139,11 @@ void value_sett::output(
139139
const namespacet &,
140140
std::ostream &out,
141141
const std::string &indent) const
142+
{
143+
output(out, indent);
144+
}
145+
146+
void value_sett::output(std::ostream &out, const std::string &indent) const
142147
{
143148
values.iterate([&](const irep_idt &, const entryt &e) {
144149
irep_idt identifier, display_name;

src/pointer-analysis/value_set.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,11 @@ class value_sett
313313
bool add_to_sets);
314314

315315
/// Pretty-print this value-set
316-
/// \param ns: global namespace
317316
/// \param [out] out: stream to write to
318317
/// \param indent: string to use for indentation of the output
318+
void output(std::ostream &out, const std::string &indent = "") const;
319+
320+
DEPRECATED(SINCE(2019, 06, 11, "Use the version without ns argument"))
319321
void output(
320322
const namespacet &ns,
321323
std::ostream &out,

0 commit comments

Comments
 (0)