mirror of
https://github.com/Z3Prover/z3
synced 2026-05-31 06:07:46 +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:
parent
37bfafa407
commit
b4ddfd32ea
3 changed files with 8 additions and 7 deletions
|
|
@ -19,8 +19,8 @@
|
||||||
#include "util/rational.h"
|
#include "util/rational.h"
|
||||||
#include "util/z3_exception.h"
|
#include "util/z3_exception.h"
|
||||||
|
|
||||||
extern bool g_display_statistics;
|
bool g_display_statistics = false;
|
||||||
extern bool g_display_model;
|
bool g_display_model = false;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@ static char const * g_input_file = nullptr;
|
||||||
static char const * g_drat_input_file = nullptr;
|
static char const * g_drat_input_file = nullptr;
|
||||||
static bool g_standard_input = false;
|
static bool g_standard_input = false;
|
||||||
static input_kind g_input_kind = IN_UNSPECIFIED;
|
static input_kind g_input_kind = IN_UNSPECIFIED;
|
||||||
bool g_display_statistics = false;
|
extern bool g_display_statistics;
|
||||||
bool g_display_model = false;
|
extern bool g_display_model;
|
||||||
static bool g_display_istatistics = false;
|
static bool g_display_istatistics = false;
|
||||||
|
|
||||||
static void error(const char * msg) {
|
static void error(const char * msg) {
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,12 @@ static std::string run_tptp(char const* input) {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required externs from shell/tptp_frontend.cpp; keep output minimal in tests.
|
extern bool g_display_statistics;
|
||||||
bool g_display_statistics = false;
|
extern bool g_display_model;
|
||||||
bool g_display_model = false;
|
|
||||||
|
|
||||||
void tst_tptp() {
|
void tst_tptp() {
|
||||||
|
g_display_statistics = false;
|
||||||
|
g_display_model = false;
|
||||||
std::vector<tptp_case> cases = {
|
std::vector<tptp_case> cases = {
|
||||||
{"agatha-butler",
|
{"agatha-butler",
|
||||||
R"(fof(ax1,axiom, lives(agatha)).
|
R"(fof(ax1,axiom, lives(agatha)).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue