Correct, I believe that definition is based of the US and other countries codes. It definitely doesn't come from the military language, where the weapons where originally designed, made and produced.
I guess you could call it the civilian definition of assault rifle, but it's a stupid...