Skip to content

Commit aa7d1d9

Browse files
committed
Add GOTO_HARNESS_PREFIX
1 parent d5a74ab commit aa7d1d9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/goto-harness/recursive_initialization.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ static symbolt &get_fresh_global_symbol(
479479
irep_idt mode)
480480
{
481481
source_locationt source_location{};
482-
source_location.set_file(CPROVER_PREFIX "harness.c");
482+
source_location.set_file(GOTO_HARNESS_PREFIX "harness.c");
483483
symbolt &fresh_symbol = get_fresh_aux_symbol(
484484
std::move(symbol_type),
485-
CPROVER_PREFIX,
485+
GOTO_HARNESS_PREFIX,
486486
symbol_base_name,
487487
source_locationt{},
488488
mode,
@@ -494,7 +494,7 @@ static symbolt &get_fresh_global_symbol(
494494
fresh_symbol.is_file_local = false;
495495
fresh_symbol.is_thread_local = false;
496496
fresh_symbol.is_state_var = false;
497-
fresh_symbol.module = CPROVER_PREFIX "harness";
497+
fresh_symbol.module = GOTO_HARNESS_PREFIX "harness";
498498
fresh_symbol.location = std::move(source_location);
499499
return fresh_symbol;
500500
}
@@ -527,7 +527,7 @@ symbol_exprt recursive_initializationt::get_fresh_local_symexpr(const std::strin
527527
{
528528
symbolt &fresh_symbol = get_fresh_aux_symbol(
529529
signed_int_type(),
530-
CPROVER_PREFIX,
530+
GOTO_HARNESS_PREFIX,
531531
symbol_name,
532532
source_locationt{},
533533
initialization_config.mode,
@@ -542,7 +542,7 @@ symbol_exprt recursive_initializationt::get_fresh_local_typed_symexpr(
542542
{
543543
symbolt &fresh_symbol = get_fresh_aux_symbol(
544544
type,
545-
CPROVER_PREFIX,
545+
GOTO_HARNESS_PREFIX,
546546
symbol_name,
547547
source_locationt{},
548548
initialization_config.mode,
@@ -580,7 +580,7 @@ symbolt &recursive_initializationt::get_fresh_param_symbol(
580580
{
581581
symbolt &param_symbol = get_fresh_aux_symbol(
582582
symbol_type,
583-
CPROVER_PREFIX,
583+
GOTO_HARNESS_PREFIX,
584584
symbol_name,
585585
source_locationt{},
586586
initialization_config.mode,

src/goto-harness/recursive_initialization.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Author: Diffblue Ltd.
2222
#include "function_harness_generator_options.h"
2323
#include "goto_harness_generator.h"
2424

25+
#define GOTO_HARNESS_PREFIX "GOTO_HARNESS"
2526
struct recursive_initialization_configt
2627
{
2728
std::size_t min_null_tree_depth = 1;

0 commit comments

Comments
 (0)