문제

I have the following line in my program:

return Z3_mk_not(ctx, term);

When I run the program, Z3 fails at this line with the following error message:

WARNING: invalid function application, sort mismatch on argument at position 1
WARNING: (define not Bool Bool) applied to: false of sort Bool

Error: type error

... does anybody know what to make of this? I'm using Z3 version 4.3.1 with the new solvers API.

valgrind does not report any memory violations.

도움이 되었습니까?

해결책

The term in question was in the wrong Z3_context. The error message was just slightly misleading, and along with the fact that valgrind didn't complain this wasn't the thing I considered first.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top