The self-contained C patches will be applied to the Clang IR representation based on matching rules. These rules will consist of conditional and boolean operations. They can be defined in a YAML format or used to generate a make_patch function that applies the patches.