简体   繁体   English

C API 是否比 z3 的标准输入 SMTLIB2 更成问题?

[英]Are C API more problematic than standard inputs SMTLIB2 for z3?

I'm completely new to z3.我对z3完全陌生。 I wonder what the difference is between the two inputs, Are C API more problematic than standard inputs SMTLIB2 for z3?我想知道这两个输入之间有什么区别,C API 比 z3 的标准输入 SMTLIB2 更有问题吗? I would appreciate it if you could answer_(:з」∠)_如果你能回答我将不胜感激_(:з」∠)_

I'm not sure what you mean by "problematic."我不确定你所说的“有问题”是什么意思。 You'd use the C-API if you want to integrate z3 into a C/C++ based framework.如果您想将 z3 集成到基于 C/C++ 的框架中,您将使用 C-API。 You'd use SMTLib if you want a common language understood by many solvers, not just z3.如果您想要一种被许多求解器(而不仅仅是 z3)理解的通用语言,您将使用 SMTLib。 So, it really depends on what your goals are.所以,这真的取决于你的目标是什么。

If you're just experimenting with it, I'd advise using an interface in a higher level language like Python, as it is much easier to get started.如果您只是在尝试它,我建议您使用高级语言的界面,例如 Python,因为它更容易上手。 SMTLib is generally not intended for human consumption, but rather generated by other programs. SMTLib 通常不是供人类使用的,而是由其他程序生成的。 Only use the C/C++ API if you have some other requirement that requires you to stay in C/C++.如果您有其他要求需要您留在 C/C++ 中,请仅使用 C/C++ API。

Long story short, it really depends on what your goal is;长话短说,这真的取决于你的目标是什么; if you tell us more about what your use case is, we can recommend something more specific.如果你告诉我们更多关于你的用例是什么,我们可以推荐一些更具体的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM