Given a ssa in the format produced by get_ssa(), return a set of blobs that are used before they are defined, which corresponds to inputs at version 0.
(ssa)
| 1249 | |
| 1250 | |
| 1251 | def get_undefined_blobs(ssa): |
| 1252 | """ |
| 1253 | Given a ssa in the format produced by get_ssa(), return a set of blobs that |
| 1254 | are used before they are defined, which corresponds to inputs at version 0. |
| 1255 | """ |
| 1256 | undef_blobs = set() |
| 1257 | for inputs, _outputs in ssa: |
| 1258 | undef_blobs |= set(name for (name, ver) in inputs if ver == 0) |
| 1259 | return undef_blobs |
| 1260 | |
| 1261 | |
| 1262 | def get_output_producers(ssa): |
no outgoing calls
no test coverage detected
searching dependent graphs…