Skip to content

Commit c5af823

Browse files
committed
copy language_file.cpp and language_file.h from CBMC
The logic implemented in CBMC's language_filest class typechecks modules starting from the leaves of the dependency tree. This is an ill-fit for both SMV and Verilog, which expect elaboration and type checking to start from the root (or "main") module. This copies the file that contains the langauge_filet and language_filest classes in order to make this change locally.
1 parent 195103b commit c5af823

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/ebmc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SRC = \
1212
diatest.cpp \
1313
dimacs_writer.cpp \
1414
ebmc_base.cpp \
15+
ebmc_language_file.cpp \
1516
ebmc_languages.cpp \
1617
ebmc_parse_options.cpp \
1718
ebmc_properties.cpp \

src/ebmc/transition_system.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Author: Daniel Kroening, [email protected]
1717
#include <util/unicode.h>
1818

1919
#include <langapi/language.h>
20-
#include <langapi/language_file.h>
2120
#include <langapi/language_util.h>
2221
#include <langapi/mode.h>
2322
#include <trans-word-level/show_module_hierarchy.h>
2423
#include <trans-word-level/show_modules.h>
2524
#include <verilog/verilog_types.h>
2625

2726
#include "ebmc_error.h"
27+
#include "ebmc_language_file.h"
2828
#include "ebmc_version.h"
2929
#include "output_file.h"
3030

@@ -132,7 +132,7 @@ int preprocess(const cmdlinet &cmdline, message_handlert &message_handler)
132132
static bool parse(
133133
const cmdlinet &cmdline,
134134
const std::string &filename,
135-
language_filest &language_files,
135+
ebmc_language_filest &language_files,
136136
message_handlert &message_handler)
137137
{
138138
messaget message(message_handler);
@@ -200,7 +200,7 @@ static bool parse(
200200

201201
bool parse(
202202
const cmdlinet &cmdline,
203-
language_filest &language_files,
203+
ebmc_language_filest &language_files,
204204
message_handlert &message_handler)
205205
{
206206
for(unsigned i = 0; i < cmdline.args.size(); i++)
@@ -261,7 +261,7 @@ int get_transition_system(
261261
//
262262
// parsing
263263
//
264-
language_filest language_files;
264+
ebmc_language_filest language_files;
265265

266266
if(parse(cmdline, language_files, message_handler))
267267
return 1;

0 commit comments

Comments
 (0)