Fix omittable exists.

This commit is contained in:
Max Schaefer
2024-01-15 13:45:03 +00:00
parent fee44074f7
commit 90a4552c4f
2 changed files with 4 additions and 4 deletions

View File

@@ -57,10 +57,10 @@ predicate candidate(
isVarargsArray, _, extensibleType) and
// It's valid for a node to be both a potential source/sanitizer and a sink. We don't want to include such nodes
// as negative examples in the prompt, because they're ambiguous and might confuse the model, so we explicitly them here.
not exists(EndpointCharacteristic characteristic2, float confidence2, EndpointType type2 |
not exists(EndpointCharacteristic characteristic2, float confidence2 |
characteristic2.appliesToEndpoint(endpoint) and
confidence2 >= SharedCharacteristics::maximalConfidence() and
characteristic2.hasImplications(type2, true, confidence2)
characteristic2.hasImplications(endpoint.getAPotentialType(), true, confidence2)
)
}

View File

@@ -31,10 +31,10 @@ where
_, extensibleType) and
// It's valid for a node to be both a potential source/sanitizer and a sink. We don't want to include such nodes
// as negative examples in the prompt, because they're ambiguous and might confuse the model, so we explicitly them here.
not exists(EndpointCharacteristic characteristic2, float confidence2, EndpointType type2 |
not exists(EndpointCharacteristic characteristic2, float confidence2 |
characteristic2.appliesToEndpoint(endpoint) and
confidence2 >= SharedCharacteristics::maximalConfidence() and
characteristic2.hasImplications(type2, true, confidence2)
characteristic2.hasImplications(endpoint.getAPotentialType(), true, confidence2)
) and
message = characteristic
select endpoint,