let to_satom = Array.fold_left (fun s a -> SAtom.add a s) SAtom.empty