I understand that ALU's are implemented in machine language, commonly verilog and VHDL. But is there a good source of an ALU written in a higher language such as c, c++, or even java? I would like to make a gui to show gate level schematics but would like to build off existing logic if possible. I would prefer 4 bit or 32 bit, but I can easily modify if others exist!