I was criticized in ps3 dev wiki for something that my program did not does, So I decided to work on what I was criticized "Validation of NOR and NAND". I studied and made a script for this validation, I wonder if the way I'm doing will work well?

http://pastebin.com/8bCyrcWP

if suggest some other improvements?

thank you