gpt4 book ai didi

z3 - 如何获取 Z3 上下文的所有可用配置设置的列表?

转载 作者:行者123 更新时间:2023-12-04 03:23:53 24 4
gpt4 key购买 nike

.net API 具有以下用于上下文的构造函数:

Context (Dictionary< string, string > settings)

如何获取所有可能设置的列表?

具体来说,我对如何让 Z3 产生一个 unsat 核心感兴趣,即等效于 SMT lib 的 generate-unsat-cores。

最佳答案

你说的对。可以发送到 .NET API 的参数没有与 .NET 代码一起描述。但是,他们正在调用基于 C 的 API,并且基于 C 的 API ( https://github.com/Z3Prover/z3/blob/master/src/api/z3_api.h ) 的注释列出了您可以传递给上下文的配置参数集。他们是:

      - proof  (Boolean)           Enable proof generation
- debug_ref_count (Boolean) Enable debug support for Z3_ast reference counting
- trace (Boolean) Tracing support for VCC
- trace_file_name (String) Trace out file for VCC traces
- timeout (unsigned) default timeout (in milliseconds) used for solvers
- well_sorted_check type checker
- auto_config use heuristics to automatically select solver and configure it
- model model generation for solvers, this parameter can be overwritten when creating a solver
- model_validate validate models produced by solvers
- unsat_core unsat-core generation for solvers, this parameter can be overwritten when creating a solver

关于z3 - 如何获取 Z3 上下文的所有可用配置设置的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16549037/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com