| 8889 | } |
| 8890 | |
| 8891 | static void tiered_released_profiles_collect(cbm_tiered_profile_set_t profiles, |
| 8892 | cbm_graph_tier_t tier, cbm_graph_access_t access, |
| 8893 | tiered_released_profiles_t *released) { |
| 8894 | memset(released, 0, sizeof(*released)); |
| 8895 | cbm_graph_access_t alternate_access = |
| 8896 | access == CBM_GRAPH_ACCESS_DIRECT ? CBM_GRAPH_ACCESS_HANDOFF : CBM_GRAPH_ACCESS_DIRECT; |
| 8897 | tiered_released_profiles_keep( |
| 8898 | released, |
| 8899 | cbm_render_graph_profile(profiles.dialect, tier, alternate_access, profiles.binary_path)); |
| 8900 | if (profiles.dialect == CBM_GRAPH_DIALECT_CODEX && access == CBM_GRAPH_ACCESS_DIRECT) { |
| 8901 | tiered_released_profiles_keep(released, cbm_render_graph_profile_codex_rc1(tier)); |
| 8902 | } |
| 8903 | if (profiles.dialect == CBM_GRAPH_DIALECT_OPENCODE) { |
| 8904 | tiered_released_profiles_keep(released, |
| 8905 | cbm_render_graph_profile_opencode_v0108(tier, access)); |
| 8906 | tiered_released_profiles_keep( |
| 8907 | released, cbm_render_graph_profile_opencode_v0108(tier, alternate_access)); |
| 8908 | } |
| 8909 | if (tier == CBM_GRAPH_TIER_VERIFY && profiles.legacy_verify_content) { |
| 8910 | released->content[released->count++] = profiles.legacy_verify_content; |
| 8911 | } |
| 8912 | } |
| 8913 | |
| 8914 | static void tiered_released_profiles_free(tiered_released_profiles_t *released) { |
| 8915 | for (size_t i = 0U; i < released->owned_count; i++) { |
no test coverage detected