diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2021-04-09 17:22:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 17:22:07 -0700 |
commit | f87f038c5f0821d0fefb01cea00bfdec6004da91 (patch) | |
tree | d948178e1c0d2dc459a976f0d187d2d41a5437c0 /src/main/driver_unified.cpp | |
parent | 550c49a7dd2b13ea29743458336f0c0a0fb6099a (diff) |
Rename CVC4_ macros to CVC5_. (#6327)
Diffstat (limited to 'src/main/driver_unified.cpp')
-rw-r--r-- | src/main/driver_unified.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index ec141d13a..9488b5c6d 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -121,9 +121,9 @@ int runCvc4(int argc, char* argv[], Options& opts) { segvSpin = opts.getSegvSpin(); // If in competition mode, set output stream option to flush immediately -#ifdef CVC4_COMPETITION_MODE +#ifdef CVC5_COMPETITION_MODE *(opts.getOut()) << unitbuf; -#endif /* CVC4_COMPETITION_MODE */ +#endif /* CVC5_COMPETITION_MODE */ // We only accept one input file if(filenames.size() > 1) { @@ -260,11 +260,11 @@ int runCvc4(int argc, char* argv[], Options& opts) { opts); if( inputFromStdin ) { -#if defined(CVC4_COMPETITION_MODE) && !defined(CVC4_SMTCOMP_APPLICATION_TRACK) +#if defined(CVC5_COMPETITION_MODE) && !defined(CVC5_SMTCOMP_APPLICATION_TRACK) parserBuilder.withStreamInput(cin); -#else /* CVC4_COMPETITION_MODE && !CVC4_SMTCOMP_APPLICATION_TRACK */ +#else /* CVC5_COMPETITION_MODE && !CVC5_SMTCOMP_APPLICATION_TRACK */ parserBuilder.withLineBufferedStreamInput(cin); -#endif /* CVC4_COMPETITION_MODE && !CVC4_SMTCOMP_APPLICATION_TRACK */ +#endif /* CVC5_COMPETITION_MODE && !CVC5_SMTCOMP_APPLICATION_TRACK */ } vector< vector<Command*> > allCommands; @@ -416,11 +416,11 @@ int runCvc4(int argc, char* argv[], Options& opts) { opts); if( inputFromStdin ) { -#if defined(CVC4_COMPETITION_MODE) && !defined(CVC4_SMTCOMP_APPLICATION_TRACK) +#if defined(CVC5_COMPETITION_MODE) && !defined(CVC5_SMTCOMP_APPLICATION_TRACK) parserBuilder.withStreamInput(cin); -#else /* CVC4_COMPETITION_MODE && !CVC4_SMTCOMP_APPLICATION_TRACK */ +#else /* CVC5_COMPETITION_MODE && !CVC5_SMTCOMP_APPLICATION_TRACK */ parserBuilder.withLineBufferedStreamInput(cin); -#endif /* CVC4_COMPETITION_MODE && !CVC4_SMTCOMP_APPLICATION_TRACK */ +#endif /* CVC5_COMPETITION_MODE && !CVC5_SMTCOMP_APPLICATION_TRACK */ } std::unique_ptr<Parser> parser(parserBuilder.build()); @@ -461,26 +461,26 @@ int runCvc4(int argc, char* argv[], Options& opts) { returnValue = 1; } -#ifdef CVC4_COMPETITION_MODE +#ifdef CVC5_COMPETITION_MODE opts.flushOut(); // exit, don't return (don't want destructors to run) // _exit() from unistd.h doesn't run global destructors // or other on_exit/atexit stuff. _exit(returnValue); -#endif /* CVC4_COMPETITION_MODE */ +#endif /* CVC5_COMPETITION_MODE */ totalTime.reset(); pExecutor->flushOutputStreams(); -#ifdef CVC4_DEBUG +#ifdef CVC5_DEBUG if(opts.getEarlyExit() && opts.wasSetByUserEarlyExit()) { _exit(returnValue); } -#else /* CVC4_DEBUG */ +#else /* CVC5_DEBUG */ if(opts.getEarlyExit()) { _exit(returnValue); } -#endif /* CVC4_DEBUG */ +#endif /* CVC5_DEBUG */ } pExecutor.reset(); |