Automatic loop-invariant generation anc refinement through selective sampling | Synapse