use min() instead of rank[1]()

This commit is contained in:
Erik Krogh Kristensen
2021-08-18 11:09:03 +02:00
parent 21d03cd365
commit dd59f79947
6 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ module InstructionConsistency {
// To avoid an overwhelming number of results when the extractor merges functions with the
// same name, just pick a single location.
result =
rank[1](Language::Location loc | loc = irFunc.getLocation() | loc order by loc.toString())
min(Language::Location loc | loc = irFunc.getLocation() | loc order by loc.toString())
}
}

View File

@@ -35,7 +35,7 @@ module InstructionConsistency {
// To avoid an overwhelming number of results when the extractor merges functions with the
// same name, just pick a single location.
result =
rank[1](Language::Location loc | loc = irFunc.getLocation() | loc order by loc.toString())
min(Language::Location loc | loc = irFunc.getLocation() | loc order by loc.toString())
}
}