Пример #1
0
 public static void AddCaptureState(this BoogieStmtListBuilder builder, Statement statement)
 {
     if (DafnyOptions.O.ModelViewFile != null || DafnyOptions.O.TestGenOptions.WarnDeadCode)
     {
         builder.Add(CaptureState(statement));
     }
 }
Пример #2
0
 public static void AddCaptureState(this BoogieStmtListBuilder builder, Bpl.IToken tok, bool isEndToken, string /*?*/ additionalInfo)
 {
     if (DafnyOptions.O.ModelViewFile != null || DafnyOptions.O.TestGenOptions.WarnDeadCode)
     {
         builder.Add(CaptureState(tok, isEndToken, additionalInfo));
     }
 }
Пример #3
0
 private static void BplIfIf(Bpl.IToken tk, bool yes, Bpl.Expr guard, BoogieStmtListBuilder builder, Action <BoogieStmtListBuilder> k)
 {
     if (yes)
     {
         var newBuilder = new BoogieStmtListBuilder(builder.tran);
         k(newBuilder);
         builder.Add(new Bpl.IfCmd(tk, guard, newBuilder.Collect(tk), null, null));
     }
     else
     {
         k(builder);
     }
 }