The term "Cortex M4" does not refer to a smart carbine.
See also: Mars Attacks brain gun.
...Oh, and now I have a vision of an Art Project.
Afterthought: If it has something like a Sig Brace, that makes it an arm Cortex M4, dunnit?
Starting point should probably be airsoft, just to avoid trouble.