Skip to content

[SoA backend]: Findwitnesses is broken after changing the type of Free Variables in the compiler #280

@vidsinghal

Description

@vidsinghal

The following commit breaks find witnesses: 0352e96...13e0c1d

This commit was added for the following reasons:

LocVar is a complex definition not just type LocVar = Var
RegVar needed to catch up so the definition changed from type RegVar = Var

The allFreeVariables gets us Var, Locs and RegVars since these were all vars it wasn't much of a problem.

Now I had to make a new type FreeVarsTy which is returned by allFreeVars
However, This breaks the functionality of Find Witnesses.
This means that somewhere in the pass it doesn not differentiate Locs, variables and regions which is a fundamental problem.

We should correct its functionality.

I ran the following compilation command in the examples directory:
gibbon --packed --no-gc --to-exe -v4 MonoTree.hs

Maybe freeVar should still return vars but

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