开发者

Set-Logic in Z3 .NET API

开发者 https://www.devze.com 2023-04-03 16:30 出处:网络
How do I use set-logic when using the .NET API function .parseSmtlib2String(String) when using Z3 version 3.1?

How do I use set-logic when using the .NET API function .parseSmtlib2String(String) when using Z3 version 3.1?

I always end up with a Z3Error-Exception.

Isn't it necessary in that 开发者_如何学Gocase?


Unfortunately, the command (set-logic <symbol>) is not supported when using the API parseSmtlib2String.

We have this limitation because of technical reasons. In the textual interface, the command set-logic can only be used before the context is initialized. The context is initialized based on the selected logic. When the API parseSmtlib2String is used the context has already been initialized by the user. So, the command set-logic fails, and generates a parsing error.

I acknowledge this is not the ideal behavior. I will investigate alternatives.

0

精彩评论

暂无评论...
验证码 换一张
取 消