Skip to content

Commit a660a60

Browse files
committed
Permit re-setting --object-bits
Support choosing the number of object bits to be used by CBMC at runtime even with pre-compiled goto binaries. Update the goto-cc section in the CPROVER manual to remove any documentation of object-bits (it remains documented in the "Memory and pointers in CBMC" section). Fixes: #5443
1 parent 01829c6 commit a660a60

28 files changed

+142
-161
lines changed

doc/cprover-manual/goto-cc.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ most important architectural parameters are:
132132
`sizeof(long int)` on various machines.
133133
- The width of pointers; for example, compare the value of `sizeof(int *)` on
134134
various machines.
135-
- The number of bits in a pointer which are used to differentiate between
136-
different objects. The remaining bits of a pointer are used for offsets
137-
within objects.
138135
- The [endianness](http://en.wikipedia.org/wiki/Endianness) of
139136
the architecture.
140137

@@ -152,8 +149,6 @@ following command-line arguments can be passed to the CPROVER tools:
152149
- The word-width can be set with `--16`, `--32`, `--64`.
153150
- The endianness can be defined with `--little-endian` and
154151
`--big-endian`.
155-
- The number of bits in a pointer used to differentiate between different
156-
objects can be set using `--object-bits x`. Where `x` is the number of bits.
157152

158153
When using a goto binary, CBMC and the other tools read the
159154
configuration from the binary. The setting when running goto-cc is

doc/man/goto-cc.1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ files.
9696
.TP
9797
\fB\-\-print\-rejected\-preprocessed\-source\fR \fIfile\fR
9898
Copy failing (preprocessed) source to \fIfile\fR.
99-
.TP
100-
\fB\-\-object\-bits\fR \fIN\fR
101-
Configure the number of bits used for object numbering in CBMC's pointer encoding.
99+
.SH BACKWARD COMPATIBILITY
100+
.B goto\-cc
101+
will warn and ignore the use of \fB\-\-object\-bits\fR, which previous versions
102+
processed. This option now instead needs to be passed to \fBcbmc\fR(1).
102103
.SH ENVIRONMENT
103104
All tools honor the TMPDIR environment variable when generating temporary
104105
files and directories.

regression/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ else()
6363
add_subdirectory(goto-cl)
6464
endif()
6565
add_subdirectory(goto-cc-cbmc)
66-
add_subdirectory(goto-cc-cbmc-shared-options)
6766
add_subdirectory(cbmc-cpp)
6867
add_subdirectory(goto-cc-goto-analyzer)
6968
add_subdirectory(goto-analyzer-simplify)

regression/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ DIRS = cbmc-shadow-memory \
3636
goto-gcc \
3737
goto-cl \
3838
goto-cc-cbmc \
39-
goto-cc-cbmc-shared-options \
4039
cbmc-cpp \
4140
goto-cc-goto-analyzer \
4241
goto-analyzer-simplify \

regression/cbmc/simplify_singleton_interval_7690/singleton_interval_in_assume_7690.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include <stdlib.h>
66
#include <stdint.h>
77

8-
extern size_t __CPROVER_max_malloc_size;
9-
108
#if defined(_WIN32) && defined(_M_X64)
119
int __builtin_clzll(unsigned long long);
1210
#define __nof_symex_objects \

regression/goto-cc-cbmc-shared-options/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

regression/goto-cc-cbmc-shared-options/Makefile

Lines changed: 0 additions & 30 deletions
This file was deleted.

regression/goto-cc-cbmc-shared-options/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

regression/goto-cc-cbmc-shared-options/chain.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)