【发布时间】:2016-10-09 12:30:02
【问题描述】:
我可以在 Z3 中定义以下递归数据类型:
(declare-datatypes ()
((Tree
(leaf (content Int))
(node (left Tree) (right Tree)))))
但我无法定义以下内容。我需要先声明一些东西吗?或者如果不允许,我如何获得等效定义(其中一个构造函数具有相同类型的任意字段,由整数索引)?
(declare-datatypes ()
((Tree
(leaf (content Int))
(node (children (Array Int Tree))))))
【问题讨论】:
标签: arrays function z3 smt algebraic-data-types