diff options
author | makaimann <makaim@stanford.edu> | 2020-10-08 09:35:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-08 09:35:56 -0700 |
commit | 35d080bfb56ff96fd41b31ce7025c019193f6abc (patch) | |
tree | 71eb7ddcb5743d0ee85899738eb2903098964df6 /src/smt/proof_post_processor.h | |
parent | 900a7217f8843a17f5ea6bb744b6013f2f394ed7 (diff) |
Get correct NodeManagerScope for toStrings in API (#5216)
Gets the correct `NodeManagerScope` for getting the `toString` of a term, op, or sort. The following program had strange output:
```
#include "cvc4/api/cvc4cpp.h"
using namespace CVC4::api;
using namespace std;
int main()
{
Solver s;
Term x = s.mkConst(s.getIntegerSort(), "x");
cout << "x = " << x << endl;
Solver s2;
cout << "x = " << x << endl;
return 0;
}
```
It was outputting:
```
x = x
x = var_267
```
Fixing the scope makes the output `x = x` both times, as expected.
Diffstat (limited to 'src/smt/proof_post_processor.h')
0 files changed, 0 insertions, 0 deletions