Skip to content

Conversion from Application to UF does not consider QualIdentifier::Sorted #12

@leonardoalt

Description

@leonardoalt

Hi, I noticed that the conversion from smt2parser::concrete::Term::Application to IUF (https://github.com/awslabs/rust-smt-ir/blob/main/amzn-smt-ir/src/term/convert.rs#L185 and another instance of IUF::parse) only take the function's name, since UF takes an ISymbol and vector of Term arguments (https://github.com/awslabs/rust-smt-ir/blob/main/amzn-smt-ir/src/term/uf.rs#L19).

However, the original Application uses a QualIdentifier for the function's term, which has the Sorted variant. This variant is useful for things like ((as const (Array Int Int)) 0), where the Sorted variant keeps the sort of the const application. Currently this term gets converted into an UF { func: Symbol("const"), args: [0] } where the sort is lost.

Is this intentional, or should the sort be kept?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions