Improve Labeling API
What is the feature you'd like to have?
The "labeling" API is currently undocumented and convoluted. It is necessary for many tasks when creating workflows.
Currently, labels must be manually modified manually (which is cumbersome and requires ctypes knowledge in Python), even in the official examples
Is your feature request related to a problem?
When modifying LowLevelIL and trying to insert goto/jump instructions, one needs to create a label in order to specify the target. In order to create these, the normal API is LowLevelILFunction.mark_label(). This API is inadequate because it is only capable of targeting the next added instruction (which is also undocumented, by the way). Instead, an API needs to be exposed to allow selecting label targets based on LowLevelILInstructions or another flexible mechanism.
Are any alternative solutions acceptable?
Provide/document an additional API for creating goto instructions pointing to arbitrary instructions.