Remove CallStack outputs from gold files

Rather, we should not output these, or output them in a nicer way.
This commit is contained in:
Inari Listenmaa
2021-06-11 13:55:04 +08:00
parent 544b39a8a5
commit 53c3afbd6f
3 changed files with 127 additions and 163 deletions

View File

@@ -1,8 +1,6 @@
Expression: s (\v0 -> v0) (app (\v0 -> v0)) ex Expression: s (\v0 -> v0) (app (\v0 -> v0)) ex
Type: S Type: S
Probability: 1.0 Probability: 1.0
Meta variable(s) ?2 should be resolved Meta variable(s) ?2 should be resolved
in the expression: s ?2 (app ?2) ?4 in the expression: s ?2 (app ?2) ?4
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands

View File

@@ -1,37 +1,35 @@
Expression: join {n1} {n2} {n3} l12 (link {n2} {n3} l23) Expression: join {n1} {n2} {n3} l12 (link {n2} {n3} l23)
Type: Path n1 n3 Type: Path n1 n3
Probability: 1.0000000000000002e-2 Probability: 1.0000000000000002e-2
Expression: join {n1} {n2} {n3} l12 (link {n2} {n3} l23) Expression: join {n1} {n2} {n3} l12 (link {n2} {n3} l23)
Type: Path n1 n3 Type: Path n1 n3
Probability: 1.0000000000000002e-2 Probability: 1.0000000000000002e-2
Expression: <?2 : Label {?1}> Expression: <?2 : Label {?1}>
Type: Label {?1} Type: Label {?1}
Probability: 1.0 Probability: 1.0
Expression: <?2 : Label {n1}> Expression: <?2 : Label {n1}>
Type: Label {n1} Type: Label {n1}
Probability: 1.0 Probability: 1.0
{n1} is implicit argument but not implicit argument is expected here {n1} is implicit argument but not implicit argument is expected here
CallStack (from HasCallStack): Expression: <\{_1}, x -> x : ({m} : Node) -> (n : Node) -> Node>
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Type: ({m} : Node) -> (n : Node) -> Node
Expression: <\{_1}, x -> x : ({m} : Node) -> (n : Node) -> Node> Probability: 1.0
Type: ({m} : Node) -> (n : Node) -> Node
Probability: 1.0 Expression: <\{_1} -> n1 : ({m} : Node) -> Node>
Type: ({m} : Node) -> Node
Expression: <\{_1} -> n1 : ({m} : Node) -> Node> Probability: 1.0
Type: ({m} : Node) -> Node
Probability: 1.0 Expression: <\{_1} -> ?1 : ({m} : Node) -> Node>
Type: ({m} : Node) -> Node
Expression: <\{_1} -> ?1 : ({m} : Node) -> Node> Probability: 1.0
Type: ({m} : Node) -> Node
Probability: 1.0 Expression: <link {n1} {n1} (id {n1}) : Path n1 n1>
Type: Path n1 n1
Expression: <link {n1} {n1} (id {n1}) : Path n1 n1> Probability: 1.0
Type: Path n1 n1
Probability: 1.0 n1
n1

View File

@@ -1,118 +1,86 @@
Couldn't match expected type Nat Couldn't match expected type Nat
against inferred type String against inferred type String
In the expression: "0" In the expression: "0"
CallStack (from HasCallStack): Category Int should have 0 argument(s), but has been given 1
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands In the type: Int 0
Category Int should have 0 argument(s), but has been given 1 A function type is expected for the expression 1 instead of type Int
In the type: Int 0 Couldn't match expected type Int -> Int
CallStack (from HasCallStack): against inferred type Int
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands In the expression: 1
A function type is expected for the expression 1 instead of type Int unknown category of function identifier unknown_fun
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Category unknown_cat is not in scope
Couldn't match expected type Int -> Int Cannot infer the type of expression \x -> x
against inferred type Int A function type is expected for the expression \x -> x instead of type Int
In the expression: 1 Expression: append (succ (succ zero)) (succ zero) (vector (succ (succ zero))) (vector (succ zero))
CallStack (from HasCallStack): Type: Vector (succ (succ (succ zero)))
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Probability: 3.532127097800926e-8
unknown category of function identifier unknown_fun
Expression: <\m, n -> vector (plus m n) : (m : Nat) -> (n : Nat) -> Vector (plus m n)>
Category unknown_cat is not in scope Type: (m : Nat) -> (n : Nat) -> Vector (plus m n)
CallStack (from HasCallStack): Probability: 1.0
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands
Cannot infer the type of expression \x -> x Expression: mkMorph (\x -> succ zero)
CallStack (from HasCallStack): Type: Morph (\v0 -> succ zero)
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Probability: 0.5
A function type is expected for the expression \x -> x instead of type Int
CallStack (from HasCallStack): Expression: idMorph (mkMorph (\x -> x))
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Type: Nat
Expression: append (succ (succ zero)) (succ zero) (vector (succ (succ zero))) (vector (succ zero)) Probability: 0.125
Type: Vector (succ (succ (succ zero)))
Probability: 3.532127097800926e-8 Couldn't match expected type Morph (\v0 -> v0)
against inferred type Morph (\v0 -> succ zero)
Expression: <\m, n -> vector (plus m n) : (m : Nat) -> (n : Nat) -> Vector (plus m n)> In the expression: mkMorph (\x -> succ zero)
Type: (m : Nat) -> (n : Nat) -> Vector (plus m n) Expression: <append zero (succ zero) : Vector zero -> Vector (succ zero) -> Vector (succ zero)>
Probability: 1.0 Type: Vector zero -> Vector (succ zero) -> Vector (succ zero)
Probability: 1.0
Expression: mkMorph (\x -> succ zero)
Type: Morph (\v0 -> succ zero) Expression: <\n, v1, n1, v2 -> append n n1 v1 v2 : (n : Nat) -> Vector n -> (m : Nat) -> Vector m -> Vector (plus n m)>
Probability: 0.5 Type: (n : Nat) -> Vector n -> (m : Nat) -> Vector m -> Vector (plus n m)
Probability: 1.0
Expression: idMorph (mkMorph (\x -> x))
Type: Nat Category EQ is not in scope
Probability: 0.125 Expression: <\v1, v2 -> cmpVector ?7 v1 v2 : Vector ?7 -> Vector ?7 -> Int> (vector ?7)
Type: Vector ?7 -> Int
Couldn't match expected type Morph (\v0 -> v0) Probability: 0.3333333333333333
against inferred type Morph (\v0 -> succ zero)
In the expression: mkMorph (\x -> succ zero) Couldn't match expected type (m : Nat) -> Vector ?1
CallStack (from HasCallStack): against inferred type (n : Nat) -> Vector n
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands In the expression: vector
Expression: <append zero (succ zero) : Vector zero -> Vector (succ zero) -> Vector (succ zero)> Expression: f1 (\v -> v) vector
Type: Vector zero -> Vector (succ zero) -> Vector (succ zero) Type: Int
Probability: 1.0 Probability: 5.555555555555555e-2
Expression: <\n, v1, n1, v2 -> append n n1 v1 v2 : (n : Nat) -> Vector n -> (m : Nat) -> Vector m -> Vector (plus n m)> Expression: f1 (\v -> succ v) (\x -> vector (succ x))
Type: (n : Nat) -> Vector n -> (m : Nat) -> Vector m -> Vector (plus n m) Type: Int
Probability: 1.0 Probability: 0.16666666666666666
Category EQ is not in scope Couldn't match expected type Vector x
CallStack (from HasCallStack): against inferred type Vector (succ x)
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands In the expression: vector (succ x)
Expression: <\v1, v2 -> cmpVector ?7 v1 v2 : Vector ?7 -> Vector ?7 -> Int> (vector ?7) Couldn't match expected type Vector n
Type: Vector ?7 -> Int against inferred type Vector (succ n)
Probability: 0.3333333333333333 In the expression: vector (succ n)
Expression: h ?2 (u0 ?2)
Couldn't match expected type (m : Nat) -> Vector ?1 Type: Int
against inferred type (n : Nat) -> Vector n Probability: 8.333333333333333e-2
In the expression: vector
CallStack (from HasCallStack): Couldn't match expected type U ?2 ?2
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands against inferred type U ?2 (succ ?2)
Expression: f1 (\v -> v) vector In the expression: u1 ?2
Type: Int Meta variable(s) ?11 should be resolved
Probability: 5.555555555555555e-2 in the expression: cmpVector (succ (succ zero)) (vector (succ (succ zero))) (append ?11 (succ zero) (vector ?11) (vector (succ zero)))
Expression: diff (succ (succ (succ zero))) (succ (succ zero)) (vector (succ (succ (succ (succ (succ zero)))))) (vector (succ (succ (succ zero))))
Expression: f1 (\v -> succ v) (\x -> vector (succ x)) Type: Vector (succ (succ zero))
Type: Int Probability: 2.1558392930913853e-12
Probability: 0.16666666666666666
Couldn't match expected type Vector (plus (succ (succ (succ zero))) (succ (succ zero)))
Couldn't match expected type Vector x against inferred type Vector (succ (succ (succ (succ zero))))
against inferred type Vector (succ x) In the expression: vector (succ (succ (succ (succ zero))))
In the expression: vector (succ x) Expression: idMorph (mkMorph2 (\x -> x) (vector zero))
CallStack (from HasCallStack): Type: Nat
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands Probability: 1.0416666666666666e-2
Couldn't match expected type Vector n
against inferred type Vector (succ n) Couldn't match expected type Vector zero
In the expression: vector (succ n) against inferred type Vector n
CallStack (from HasCallStack): In the expression: x
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands
Expression: h ?2 (u0 ?2)
Type: Int
Probability: 8.333333333333333e-2
Couldn't match expected type U ?2 ?2
against inferred type U ?2 (succ ?2)
In the expression: u1 ?2
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands
Meta variable(s) ?11 should be resolved
in the expression: cmpVector (succ (succ zero)) (vector (succ (succ zero))) (append ?11 (succ zero) (vector ?11) (vector (succ zero)))
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands
Expression: diff (succ (succ (succ zero))) (succ (succ zero)) (vector (succ (succ (succ (succ (succ zero)))))) (vector (succ (succ (succ zero))))
Type: Vector (succ (succ zero))
Probability: 2.1558392930913853e-12
Couldn't match expected type Vector (plus (succ (succ (succ zero))) (succ (succ zero)))
against inferred type Vector (succ (succ (succ (succ zero))))
In the expression: vector (succ (succ (succ (succ zero))))
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands
Expression: idMorph (mkMorph2 (\x -> x) (vector zero))
Type: Nat
Probability: 1.0416666666666666e-2
Couldn't match expected type Vector zero
against inferred type Vector n
In the expression: x
CallStack (from HasCallStack):
error, called at src/compiler/GF/Command/Commands.hs:744:43 in gf-3.10.4-EdD6fabQUzM4AhRenbxTb3:GF.Command.Commands