1
因此,我可以使用Z3_get_quantifier_bound_name在表示量詞的表達式上調用,獲得與量詞邊界相關的名稱。但假設我正在穿越量化子公式的AST。在這一點上可以訪問索引的名稱嗎? 謝謝。是否可以訪問與Z3中的de Bruijn索引關聯的名稱?
if (z3_expr.is_var())
{
// is it possible at this point to get the name of the quantified variable,
// which was associated with it at quantifier creation?
}
謝謝,我明白了,我期待這一點。當我們嵌套量詞時會發生什麼?索引的計數是否繼續?我假設,我應該使用Z3_get_index_value來獲取給定變量表達式的索引號。 – Egbert
是X2,枚舉繼續,'Z3_get_index_value'檢索變量的de Bruijn索引。查看更多代碼示例的答案:http://stackoverflow.com/questions/11816626/understanding-the-indexing-of-bound-variables-in-z3 –