Using High-Level Synthesis To Predict And Preempt Attacks On Industrial Control Systems