Page 1 of 1

Must unify problem

Posted: 5 Feb 2017 16:35
by Martin Meyer
Hello Thomas,

please check this code. The must unify produces an access violation (in VIP 7502):

Code: Select all

    open         pfc\syntax\,         core,         syntax   domains     abstractSyntaxTree = abstractSyntaxTree(         symbol RuleName,         cursor Cursor,         gsAbstractSyntaxTree* GsAstList).     gsAbstractSyntaxTree =         curAst_t(             string TerminalString,             cursor Cursor);         curAst_nt(abstractSyntaxTree Ast).   class predicates     getList : () -> gsAbstractSyntaxTree*. clauses     getList() = [curAst_t("", Cursor), curAst_nt(Ast), curAst_nt(Ast), curAst_nt(Ast), curAst_nt(Ast), curAst_nt(Ast)] :-         SourceFile = inputSourceFile::new(""),         PackedCursor = packCursor(0, 0),         ShortCursor = shortCursor(SourceFile, PackedCursor, PackedCursor),         Cursor = cursor(ShortCursor, [], []),         Ast = abstractSyntaxTree("", Cursor, []).   clauses     run() :-         List = getList(),         [curAst_t(_, _), curAst_nt(_), curAst_nt(_), curAst_nt(_), curAst_nt(_), curAst_nt(_)] == List.

Posted: 6 Feb 2017 20:46
by Thomas Linder Puls
Hi, Martin. We will look at it.

Posted: 16 Feb 2017 6:26
by Joop
Thomas Linder Puls wrote:Hi, Martin. We will look here for the instant knockout it.
Are you all good now Martin?

Posted: 18 Feb 2017 20:01
by Martin Meyer
Yes Joop, it is all fine. I reported an issue, Thomas and his colleagues will look at it, and probably in the next VIP version they have fixed it. That is the common way to handle such matters.