Screenshots of IDA from running the code at this asciinema link.
The generated python files are from the commands:
bap coreutils_O3_uniq --taint-reg='%000026e1' --taint --emit-ida-script-file=tr.py --emit-ida-script-attr=tainted-reg --emit-ida-script
bap coreutils_O3_uniq --taint-reg='%000026e1' --taint --map-terms-with='((taints) (color green))' --map-terms --emit-ida-script-file=c.py --emit-ida-script-attr=color --emit-ida-script
The coreutils_O3_uniq file is taken from BinaryAnalysisPlatform/arm-binaries.
Names of the screenshot files should make it clear, as to what each one is about.
![[BAP] [emit-ida-script] 0 - before running scripts.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25200%2520-%2520before%2520running%2520scripts.png)
![[BAP] [emit-ida-script] 1 - after running tr.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25201%2520-%2520after%2520running%2520tr.png)
![[BAP] [emit-ida-script] 2 - show additional comments.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25202%2520-%2520show%2520additional%2520comments.png)
![[BAP] [emit-ida-script] 3 - tr doesn't overwrite them.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25203%2520-%2520tr%2520doesn't%2520overwrite%2520them.png)
![[BAP] [emit-ida-script] 4 - garbled.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25204%2520-%2520garbled.png)
![[BAP] [emit-ida-script] 5 - tr overwrites only it's own value in the dictionary.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25205%2520-%2520tr%2520overwrites%2520only%2520it's%2520own%2520value%2520in%2520the%2520dictionary.png)
![[BAP] [emit-ida-script] 6 - running the color script.png](https://gist.github.com/jaybosamiya/7013ddf22a30103e7f635a1a7591ab7e/raw/6b0c0432b56a0d84274a717cffc1a54e895c661b/%255BBAP%255D%2520%255Bemit-ida-script%255D%25206%2520-%2520running%2520the%2520color%2520script.png)