@@ -58,7 +58,7 @@ private import codeql.rust.dataflow.FlowSink
5858 * For more information on the `kind` parameter, see
5959 * https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst.
6060 */
61- extensible predicate sourceModel (
61+ extensible predicate sourceModelDeprecated (
6262 string crate , string path , string output , string kind , string provenance ,
6363 QlBuiltins:: ExtensionId madId
6464) ;
@@ -74,7 +74,7 @@ extensible predicate sourceModel(
7474 *
7575 * - `sql-injection`: a flow sink for SQL injection.
7676 */
77- extensible predicate sinkModel (
77+ extensible predicate sinkModelDeprecated (
7878 string crate , string path , string input , string kind , string provenance ,
7979 QlBuiltins:: ExtensionId madId
8080) ;
@@ -87,7 +87,7 @@ extensible predicate sinkModel(
8787 * `kind` should be either `value` or `taint`, for value-preserving or taint-preserving
8888 * steps, respectively.
8989 */
90- extensible predicate summaryModel (
90+ extensible predicate summaryModelDeprecated (
9191 string crate , string path , string input , string output , string kind , string provenance ,
9292 QlBuiltins:: ExtensionId madId
9393) ;
@@ -99,17 +99,17 @@ extensible predicate summaryModel(
9999 */
100100predicate interpretModelForTest ( QlBuiltins:: ExtensionId madId , string model ) {
101101 exists ( string crate , string path , string output , string kind |
102- sourceModel ( crate , path , kind , output , _, madId ) and
102+ sourceModelDeprecated ( crate , path , kind , output , _, madId ) and
103103 model = "Source: " + crate + "; " + path + "; " + output + "; " + kind
104104 )
105105 or
106106 exists ( string crate , string path , string input , string kind |
107- sinkModel ( crate , path , kind , input , _, madId ) and
107+ sinkModelDeprecated ( crate , path , kind , input , _, madId ) and
108108 model = "Sink: " + crate + "; " + path + "; " + input + "; " + kind
109109 )
110110 or
111111 exists ( string type , string path , string input , string output , string kind |
112- summaryModel ( type , path , input , output , kind , _, madId ) and
112+ summaryModelDeprecated ( type , path , input , output , kind , _, madId ) and
113113 model = "Summary: " + type + "; " + path + "; " + input + "; " + output + "; " + kind
114114 )
115115}
@@ -119,15 +119,15 @@ private class SummarizedCallableFromModel extends SummarizedCallable::Range {
119119 private string path ;
120120
121121 SummarizedCallableFromModel ( ) {
122- summaryModel ( crate , path , _, _, _, _, _) and
122+ summaryModelDeprecated ( crate , path , _, _, _, _, _) and
123123 this = crate + "::_::" + path
124124 }
125125
126126 override predicate propagatesFlow (
127127 string input , string output , boolean preservesValue , string model
128128 ) {
129129 exists ( string kind , QlBuiltins:: ExtensionId madId |
130- summaryModel ( crate , path , input , output , kind , _, madId ) and
130+ summaryModelDeprecated ( crate , path , input , output , kind , _, madId ) and
131131 model = "MaD:" + madId .toString ( )
132132 |
133133 kind = "value" and
@@ -144,13 +144,13 @@ private class FlowSourceFromModel extends FlowSource::Range {
144144 private string path ;
145145
146146 FlowSourceFromModel ( ) {
147- sourceModel ( crate , path , _, _, _, _) and
147+ sourceModelDeprecated ( crate , path , _, _, _, _) and
148148 this .callResolvesTo ( crate , path )
149149 }
150150
151151 override predicate isSource ( string output , string kind , Provenance provenance , string model ) {
152152 exists ( QlBuiltins:: ExtensionId madId |
153- sourceModel ( crate , path , output , kind , provenance , madId ) and
153+ sourceModelDeprecated ( crate , path , output , kind , provenance , madId ) and
154154 model = "MaD:" + madId .toString ( )
155155 )
156156 }
@@ -161,13 +161,13 @@ private class FlowSinkFromModel extends FlowSink::Range {
161161 private string path ;
162162
163163 FlowSinkFromModel ( ) {
164- sinkModel ( crate , path , _, _, _, _) and
164+ sinkModelDeprecated ( crate , path , _, _, _, _) and
165165 this .callResolvesTo ( crate , path )
166166 }
167167
168168 override predicate isSink ( string input , string kind , Provenance provenance , string model ) {
169169 exists ( QlBuiltins:: ExtensionId madId |
170- sinkModel ( crate , path , input , kind , provenance , madId ) and
170+ sinkModelDeprecated ( crate , path , input , kind , provenance , madId ) and
171171 model = "MaD:" + madId .toString ( )
172172 )
173173 }
0 commit comments