Skip to content

[bug] Suspected wrong graph for isfull? (Interpreter wrong) #112

Description

@acl-cqc

In examples/infer2.brat:

isfull(n :: #) -> Bool
isfull(succ(doub(n))) = isfull(n)
isfull(0) = true
isfull(_) = false

Interpreter wrongly produces false for 3 and 15, despite interpreting correctly

hasfulllen(n :: #, Vec(Bool, n)) -> Bool
hasfulllen(n, x ,- (xs =,= ys)) = hasfulllen(!, xs)
hasfulllen(_, []) = true
hasfulllen(_, _) = false

suggests some difference in the graph computing the values vs the lengths, tho it's amusing that the lengths are correct and the values wrong not the other way around! Might this possibly relate to #30 ??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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