3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-16 15:15:35 +00:00

Fix missing g_display_* symbol definitions for non-shell link targets

Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/0283d958-26a8-4b1c-86be-b75a5bc26d8c

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-12 23:00:14 +00:00 committed by GitHub
parent 37bfafa407
commit b4ddfd32ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View file

@ -19,8 +19,8 @@
#include "util/rational.h"
#include "util/z3_exception.h"
extern bool g_display_statistics;
extern bool g_display_model;
bool g_display_statistics = false;
bool g_display_model = false;
namespace {

View file

@ -50,8 +50,8 @@ static char const * g_input_file = nullptr;
static char const * g_drat_input_file = nullptr;
static bool g_standard_input = false;
static input_kind g_input_kind = IN_UNSPECIFIED;
bool g_display_statistics = false;
bool g_display_model = false;
extern bool g_display_statistics;
extern bool g_display_model;
static bool g_display_istatistics = false;
static void error(const char * msg) {

View file

@ -34,11 +34,12 @@ static std::string run_tptp(char const* input) {
return out;
}
// Required externs from shell/tptp_frontend.cpp; keep output minimal in tests.
bool g_display_statistics = false;
bool g_display_model = false;
extern bool g_display_statistics;
extern bool g_display_model;
void tst_tptp() {
g_display_statistics = false;
g_display_model = false;
std::vector<tptp_case> cases = {
{"agatha-butler",
R"(fof(ax1,axiom, lives(agatha)).