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

时间:2013-05-14 17:12:52

标签: z3

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

Context (Dictionary< string, string > settings)

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

具体来说,我感兴趣的是如何要求Z3生产不饱和核心,即相当于SMT lib产生的不饱和核心。

1 个答案:

答案 0 :(得分:4)

你说得好。您可以发送到.NET API的参数不与.NET代码一起描述。但是,他们调用基于C的API,基于C的API(http://z3.codeplex.com/SourceControl/latest#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