Skip to content

Commit a55f33d

Browse files
author
Daniel Kroening
committed
bump goto binary version
1 parent 25abc6c commit a55f33d

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed
-119 Bytes
Binary file not shown.
-121 Bytes
Binary file not shown.
-65 Bytes
Binary file not shown.
-101 Bytes
Binary file not shown.
-106 Bytes
Binary file not shown.

src/goto-programs/read_bin_goto_object.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Date: June 2006
2020

2121
#include "goto_functions.h"
2222

23-
/// read goto binary format v3
23+
/// read goto binary format v4
2424
/// \par parameters: input stream, symbol_table, functions
2525
/// \return true on error, false otherwise
26-
static bool read_bin_goto_object_v3(
26+
static bool read_bin_goto_object_v4(
2727
std::istream &in,
2828
symbol_tablet &symbol_table,
2929
goto_functionst &functions,
@@ -221,13 +221,14 @@ bool read_bin_goto_object(
221221
{
222222
case 1:
223223
case 2:
224+
case 3:
224225
message.error() <<
225226
"The input was compiled with an old version of "
226227
"goto-cc; please recompile" << messaget::eom;
227228
return true;
228229

229-
case 3:
230-
return read_bin_goto_object_v3(
230+
case 4:
231+
return read_bin_goto_object_v4(
231232
in, symbol_table, functions, irepconverter);
232233
break;
233234

src/goto-programs/write_goto_binary.cpp

+6-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Author: CM Wintersteiger
1919

2020
#include <goto-programs/goto_model.h>
2121

22-
/// Writes a goto program to disc, using goto binary format ver 2
23-
bool write_goto_binary_v3(
22+
/// Writes a goto program to disc, using goto binary format ver 4
23+
bool write_goto_binary_v4(
2424
std::ostream &out,
2525
const symbol_tablet &symbol_table,
2626
const goto_functionst &goto_functions,
@@ -151,13 +151,12 @@ bool write_goto_binary(
151151
switch(version)
152152
{
153153
case 1:
154-
throw "version 1 no longer supported";
155-
156154
case 2:
157-
throw "version 2 no longer supported";
158-
159155
case 3:
160-
return write_goto_binary_v3(
156+
throw "version no longer supported";
157+
158+
case 4:
159+
return write_goto_binary_v4(
161160
out, symbol_table, goto_functions, irepconverter);
162161

163162
default:

src/goto-programs/write_goto_binary.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Author: CM Wintersteiger
1212
#ifndef CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H
1313
#define CPROVER_GOTO_PROGRAMS_WRITE_GOTO_BINARY_H
1414

15-
#define GOTO_BINARY_VERSION 3
15+
#define GOTO_BINARY_VERSION 4
1616

1717
#include <iosfwd>
1818
#include <string>

0 commit comments

Comments
 (0)