Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions cedar-dafny/difftest/main.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module difftest.main {
import opened def.ext.fun
import opened restrictedExpr
import opened validation.types
import opened validation.strict
import opened validation.typechecker
import opened validation.validator
import opened helpers

Expand Down Expand Up @@ -582,23 +582,17 @@ module difftest.main {
case UnknownEntities(_) => "UnknownEntities"
case ExtensionErr(_) => "ExtensionErr"
case EmptyLUB => "EmptyLUB"
}
}

function strictTypeErrorToString(e: StrictTypeError): string {
match e {
case TypeError(e1) => typeErrorToString(e1)
case TypesMustMatch => "TypesMustMatch"
case EmptySetForbidden => "EmptySetForbidden"
case NonLitExtConstructor => "NonLitExtConstructor"
case NonSingletonLub => "NonSingletonLub"
case HierarchyNotRespected => "HierarchyNotRespected"
}
}

function validationErrorToString(e: ValidationError): string {
match e {
case AllFalse => "AllFalse"
case StrictTypeError(e1) => strictTypeErrorToString(e1)
case TypeError(e1) => typeErrorToString(e1)
}
}

Expand Down
1 change: 0 additions & 1 deletion cedar-dafny/validation/all.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

include "strict.dfy"
include "subtyping.dfy"
include "typechecker.dfy"
include "types.dfy"
Expand Down
235 changes: 0 additions & 235 deletions cedar-dafny/validation/strict.dfy

This file was deleted.

Loading