Stkvar du-ud chains

Does du-ud chains calculation work for stack variables? Why it always empty? Is any SDK API except “mark_chains_dirty” to force rebuild chains?
Thanks.

Hi!

As a general rule, DU/UD chains in IDA are only computed for non-aliasable stack variables.

Would you mind sharing the sample and code you’re using? If you’re always getting empty chains, it may also be worth double-checking that the API is being used correctly (e.g., with the appropriate flags).

Code:
* 1st: the example is taken from ida-sdk, works okay
* 2nd: was working sometimes (not sure for now, last checked a few years ago)
* 3rd never was working for stackvars

And finally, in IDA 9.3 “View → Generate microcode → Display chains…” → “stkvar du-ud” is always empty, any platform, any sample, any function, any maturity level. Never seen anything in this window.

Is whole stack area always “aliasable” or there is something wrong in the code?