Const input for sygus print callback (#3755)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 13 Feb 2020 21:22:20 +0000 (15:22 -0600)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2020 21:22:20 +0000 (15:22 -0600)
src/printer/sygus_print_callback.cpp
src/printer/sygus_print_callback.h

index 2b6d5fc1eec618d4639c8eb1a011400d7dd2b99b..ae1d97c64c21f3313be6d69d59d00521b7af59d9 100644 (file)
@@ -24,7 +24,7 @@ namespace CVC4 {
 namespace printer {
 
 SygusExprPrintCallback::SygusExprPrintCallback(Expr body,
-                                               std::vector<Expr>& args)
+                                               const std::vector<Expr>& args)
     : d_body(body), d_body_argument(-1)
 {
   d_args.insert(d_args.end(), args.begin(), args.end());
index d10a312bd61230c2d2caac18bf58771a42ada403..a53fbc85f4a5fdd58b60acfb4585065532146cb3 100644 (file)
@@ -45,7 +45,7 @@ namespace printer {
 class CVC4_PUBLIC SygusExprPrintCallback : public SygusPrintCallback
 {
  public:
-  SygusExprPrintCallback(Expr body, std::vector<Expr>& args);
+  SygusExprPrintCallback(Expr body, const std::vector<Expr>& args);
   ~SygusExprPrintCallback() {}
   /** print sygus term e on output out using printer p */
   virtual void toStreamSygus(const Printer* p,