Skip to content

Commit

Permalink
ICanVerify is more general + Forward-compatibility for {:fuel} on Ass…
Browse files Browse the repository at this point in the history
…ertStmt
  • Loading branch information
MikaelMayer committed Oct 18, 2024
1 parent 4958d39 commit 0e988bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DafnyCore/AST/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ public static Attributes ExpandAtAttribute(Program program, UserSuppliedAtAttrib
.WithArg("low", Type.Int, DefaultInt(1))
.WithArg("high", Type.Int, DefaultInt(2))
.WithArg("functionName", Type.ResolvedString(), DefaultString(""))
.Filter(attributeHost => attributeHost is Function),
.Filter(attributeHost => attributeHost is Function or AssertStmt),
BuiltIn("IsolateAssertions")
.Filter(attributeHost => attributeHost is MemberDecl or DatatypeDecl or RedirectingTypeDecl),
.Filter(attributeHost => attributeHost is ICanVerify),
BuiltIn("Options")
.WithArg(TupleItem0Name, Type.ResolvedString())
.Filter(attributeHost => attributeHost is ModuleDecl or ModuleDefinition),
Expand Down

0 comments on commit 0e988bc

Please sign in to comment.