Skip to content

Commit 261a053

Browse files
author
Owen
committed
Move pointer_offset_sum
Move it from pointer_analysis to util. It is not currently used in the cbmc codebase. The only changes were to the names of the guards in the header file and the includes.
1 parent 557d3f2 commit 261a053

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/pointer-analysis/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
SRC = add_failed_symbols.cpp \
22
goto_program_dereference.cpp \
3-
pointer_offset_sum.cpp \
43
rewrite_index.cpp \
54
show_value_sets.cpp \
65
value_set.cpp \

src/util/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ SRC = allocate_objects.cpp \
5353
parse_options.cpp \
5454
parser.cpp \
5555
pointer_offset_size.cpp \
56+
pointer_offset_sum.cpp \
5657
pointer_predicates.cpp \
5758
rational.cpp \
5859
rational_tools.cpp \

src/pointer-analysis/pointer_offset_sum.cpp renamed to src/util/pointer_offset_sum.cpp

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

1212
#include "pointer_offset_sum.h"
1313

14-
#include <util/std_expr.h>
14+
#include "std_expr.h"
1515

1616
exprt pointer_offset_sum(const exprt &a, const exprt &b)
1717
{
18-
if(a.id()==ID_unknown)
18+
if(a.id() == ID_unknown)
1919
return a;
20-
else if(b.id()==ID_unknown)
20+
else if(b.id() == ID_unknown)
2121
return b;
2222
else if(a.is_zero())
2323
return b;

src/pointer-analysis/pointer_offset_sum.h renamed to src/util/pointer_offset_sum.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Author: Daniel Kroening, [email protected]
99
/// \file
1010
/// Pointer Dereferencing
1111

12-
#ifndef CPROVER_POINTER_ANALYSIS_POINTER_OFFSET_SUM_H
13-
#define CPROVER_POINTER_ANALYSIS_POINTER_OFFSET_SUM_H
12+
#ifndef CPROVER_UTIL_POINTER_OFFSET_SUM_H
13+
#define CPROVER_UTIL_POINTER_OFFSET_SUM_H
1414

15-
#include <util/expr.h>
15+
#include "expr.h"
1616

1717
exprt pointer_offset_sum(const exprt &a, const exprt &b);
1818

19-
#endif // CPROVER_POINTER_ANALYSIS_POINTER_OFFSET_SUM_H
19+
#endif // CPROVER_UTIL_POINTER_OFFSET_SUM_H

0 commit comments

Comments
 (0)