Skip to content

Commit 54c0404

Browse files
committed
Java: Allow ai-generated as a provenance value.
1 parent cf5a651 commit 54c0404

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

java/ql/lib/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@
6767
* "taint" indicates a default additional taint step and "value" indicates a
6868
* globally applicable value-preserving step.
6969
* 9. The `provenance` column is a tag to indicate the origin of the summary.
70-
* There are two supported values: "generated" and "manual". "generated" means that
71-
* the model has been emitted by the model generator tool and "manual" means
72-
* that the model has been written by hand.
70+
* The supported values are: "manual", "generated" and "ai-generated". "manual"
71+
* means that the model has been written by hand, "generated" means that
72+
* the model has been emitted by the model generator tool and
73+
* "ai-generated" means that the model has been AI generated (ATM project).
7374
*/
7475

7576
import java
@@ -308,7 +309,7 @@ module ModelValidation {
308309
not ext.regexpMatch("|Annotated") and
309310
result = "Unrecognized extra API graph element \"" + ext + "\" in " + pred + " model."
310311
or
311-
not provenance = ["manual", "generated"] and
312+
not provenance = ["manual", "generated", "ai-generated"] and
312313
result = "Unrecognized provenance description \"" + provenance + "\" in " + pred + " model."
313314
)
314315
}

0 commit comments

Comments
 (0)