Skip to content

Commit 149aa89

Browse files
committed
formatting
1 parent 48412e7 commit 149aa89

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Prover/Core.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ and Proposition =
317317
| :? Integer as p ->
318318
match p with
319319
| ExtInteger m -> loop m
320-
| Integer(_) -> [], []
320+
| Integer _ -> [], []
321321
| UnaryMinus m -> loop m
322322
| Plus(x, y)
323323
| Minus(x, y)
@@ -542,14 +542,14 @@ and Sequence =
542542
member this.TextualSubstitution (varName: string) (expr: WExpr) : WExpr =
543543
match this with
544544
| ExtSequence e -> ExtSequence(e.TextualSubstitution varName expr) :> WExpr
545-
| Empty(_) -> failwith "Not Implemented"
545+
| Empty _ -> failwith "Not Implemented"
546546
| Cons(_, _) -> failwith "Not Implemented"
547547
| Concat(_, _) -> failwith "Not Implemented"
548548
| IsPrefix(_, _) -> failwith "Not Implemented"
549549
| IsSuffix(_, _) -> failwith "Not Implemented"
550-
| Length(_) -> failwith "Not Implemented"
551-
| Head(_) -> failwith "Not Implemented"
552-
| Tail(_) -> failwith "Not Implemented"
550+
| Length _ -> failwith "Not Implemented"
551+
| Head _ -> failwith "Not Implemented"
552+
| Tail _ -> failwith "Not Implemented"
553553

554554
and WSort =
555555
| WInt
@@ -750,7 +750,7 @@ let internal checkAssuming (ctx: Context) (assumptions: Proposition list) (p: Pr
750750
assumptions
751751
|> List.iter (fun l -> solver.Assert((l :> WExpr).ToZ3Expr(ctx, Map.empty) :?> BoolExpr))
752752

753-
let exp = ((p :> WExpr).ToZ3Expr(ctx, Map.empty)) :?> BoolExpr
753+
let exp = (p :> WExpr).ToZ3Expr(ctx, Map.empty) :?> BoolExpr
754754
solver.Assert(ctx.MkNot exp)
755755

756756
match solver.Check() with

Prover/LanguageServices/Wybe/Semantics.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ let semanticExprToWExpr (e: SemanticTree) : DomainWExpr =
380380
| Lit(Int i), [] -> Integer i :> WExpr
381381
| Unary(Op.UnaryMinus, _), [ c ] -> -(typedToWExpr c :?> Integer) :> WExpr
382382
| Unary(Op.Length, _), [ c ] -> len (typedToWExpr c) :> WExpr
383-
| Binary(_, Op.Plus, _), [ l; r ] -> ((typedToWExpr l :?> Integer) + (typedToWExpr r :?> Integer)) :> WExpr
384-
| Binary(_, Op.Minus, _), [ l; r ] -> ((typedToWExpr l :?> Integer) - (typedToWExpr r :?> Integer)) :> WExpr
385-
| Binary(_, Op.Times, _), [ l; r ] -> ((typedToWExpr l :?> Integer) * (typedToWExpr r :?> Integer)) :> WExpr
386-
| Binary(_, Op.Div, _), [ l; r ] -> ((typedToWExpr l :?> Integer) / (typedToWExpr r :?> Integer)) :> WExpr
383+
| Binary(_, Op.Plus, _), [ l; r ] -> (typedToWExpr l :?> Integer) + (typedToWExpr r :?> Integer) :> WExpr
384+
| Binary(_, Op.Minus, _), [ l; r ] -> (typedToWExpr l :?> Integer) - (typedToWExpr r :?> Integer) :> WExpr
385+
| Binary(_, Op.Times, _), [ l; r ] -> (typedToWExpr l :?> Integer) * (typedToWExpr r :?> Integer) :> WExpr
386+
| Binary(_, Op.Div, _), [ l; r ] -> (typedToWExpr l :?> Integer) / (typedToWExpr r :?> Integer) :> WExpr
387387
| Expr.Var name, [] -> mkIntVar name
388388
| _ -> failwith $"not implemented: {exprToTree e.Expr}"
389389
| Some(Type.Array inner) ->

Test/WybeLangTest.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ let ``weakest precondition assignment`` () =
115115

116116
[<Fact>]
117117
let ``weakest precondition composition`` () =
118-
[ Becomes ["n", DomainWExpr(None, n + 1)],
119-
Becomes ["n", DomainWExpr(None, n * 2)],
118+
[ Becomes [ "n", DomainWExpr(None, n + 1) ],
119+
Becomes [ "n", DomainWExpr(None, n * 2) ],
120120
StateSpace(vars, n > zero),
121121
StateSpace(vars, (n + 1) * 2 > zero) ]
122122
|> List.iter (fun (s, t, postcondition, expected) ->

0 commit comments

Comments
 (0)