Address review comment

This commit is contained in:
Tom Hvitved
2024-11-07 10:40:03 +01:00
parent 95e9d013cc
commit 26b048a645

View File

@@ -17,7 +17,7 @@ signature class PathNodeSig {
private signature predicate provenanceSig(string model);
private module TranslateModels<
interpretModelForTestSig/2 interpretModelForTest, provenanceSig/1 provenance>
interpretModelForTestSig/2 interpretModelForTest0, provenanceSig/1 provenance>
{
private predicate madIds(string madId) {
exists(string model |
@@ -26,6 +26,12 @@ private module TranslateModels<
)
}
// Be robust against MaD IDs with multiple textual representations; simply
// concatenate them all
private predicate interpretModelForTest(QlBuiltins::ExtensionId madId, string model) {
model = strictconcat(string mod | interpretModelForTest0(madId, mod) | mod, ", ")
}
private QlBuiltins::ExtensionId getModelId(string model) {
madIds(result.toString()) and
interpretModelForTest(result, model)