public static ProofState ApplyTactic(ProofState state, Dictionary <IVariable, Type> variables, UpdateStmt tacticApplication) { Contract.Requires <ArgumentNullException>(tcce.NonNull(variables)); Contract.Requires <ArgumentNullException>(tcce.NonNull(tacticApplication)); Contract.Requires <ArgumentNullException>(state != null, "state"); state.InitState(tacticApplication, variables); var search = new BaseSearchStrategy(state.TacticInfo.SearchStrategy, true); return(search.Search(state, _errorReporterDelegate).FirstOrDefault()); }
public static IEnumerable <ProofState> ApplyNestedTactic(ProofState state, Dictionary <IVariable, Type> variables, UpdateStmt tacticApplication) { Contract.Requires <ArgumentNullException>(tcce.NonNull(variables)); Contract.Requires <ArgumentNullException>(tcce.NonNull(tacticApplication)); Contract.Requires <ArgumentNullException>(state != null, "state"); state.InitState(tacticApplication, variables); var search = new BaseSearchStrategy(state.TacticInfo.SearchStrategy, false); foreach (var result in search.Search(state, _errorReporterDelegate)) { var c = state.Copy(); c.AddStatementRange(result.GetGeneratedCode()); yield return(c); } }
public static IEnumerable<ProofState> ApplyNestedTactic(ProofState state, Dictionary<IVariable, Type> variables, UpdateStmt tacticApplication) { Contract.Requires<ArgumentNullException>(tcce.NonNull(variables)); Contract.Requires<ArgumentNullException>(tcce.NonNull(tacticApplication)); Contract.Requires<ArgumentNullException>(state != null, "state"); state.InitState(tacticApplication, variables); var search = new BaseSearchStrategy(state.TacticInfo.SearchStrategy, false); foreach (var result in search.Search(state, _errorReporterDelegate)) { var c = state.Copy(); c.AddStatementRange(result.GetGeneratedCode()); yield return c; } }
public static ProofState ApplyTactic(ProofState state, Dictionary<IVariable, Type> variables, UpdateStmt tacticApplication) { Contract.Requires<ArgumentNullException>(tcce.NonNull(variables)); Contract.Requires<ArgumentNullException>(tcce.NonNull(tacticApplication)); Contract.Requires<ArgumentNullException>(state != null, "state"); state.InitState(tacticApplication, variables); var search = new BaseSearchStrategy(state.TacticInfo.SearchStrategy, true); return search.Search(state, _errorReporterDelegate).FirstOrDefault(); }