Skip to content

Commit

Permalink
Update atg
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Oct 7, 2024
1 parent eddcbba commit 78ebe34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/BoogiePL.atg
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,11 @@ Function<.out List<Declaration>/*!*/ ds.>
}
if (definition != null) {
// generate either an axiom or a function body
if (QKeyValue.FindBoolAttribute(kv, "inline")) {
if (QKeyValue.FindBoolAttribute(kv, "define"))
if (kv.FindBoolAttribute("inline")) {
if (kv.FindBoolAttribute("define"))
SemErr("function cannot have both :inline and :define attributes");
func.Body = definition;
} else if (QKeyValue.FindBoolAttribute(kv, "define")) {
} else if (kv.FindBoolAttribute("define")) {
if (func.TypeParameters.Count > 0)
SemErr("function with :define attribute has to be monomorphic");
func.DefinitionBody = func.CreateFunctionDefinition(definition);
Expand Down

0 comments on commit 78ebe34

Please sign in to comment.