RandomStuffFromAI/IDABitfieldsForPseudocode — reverse-engineered prompt
Reverse engineered prompt
Build me an IDA Pro plugin for Hex Rays that makes decompiled pseudocode easier to read by turning raw bit mask checks into real bitfield member names when the struct type already has matching one bit fields.
For example, if Hex Rays shows something like checking a byte at an offset with an and mask, I want it to display something like this pointer to a named flag field instead. It should also handle a few common temporary variable patterns and simple packed bit writes if that’s practical. When I hover the fake member name, show a helpful hint with the byte offset, bit number, and the bitfield type.
This should only rewrite what the user sees in pseudocode after decompilation. It should not change the database, structs, ctree, or saved output. Keep the pseudocode coloring looking natural.
Please make it build with CMake as a C plus plus 17 plugin, include Windows and shell build scripts, stage the plugin output in an out folder, and include the plugin manifest so it can be copied into IDA’s plugins folder.
Want more depth? Deep Reverse