File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1414 *******************************************************************************/
1515
1616include ".. / .. / Wrappers. dfy"
17- include ".. / .. / Math . dfy"
17+ include ".. / .. / MathLib . dfy"
1818include "MergeSort. dfy"
1919include ".. / .. / Relations. dfy"
2020
@@ -23,7 +23,7 @@ module {:options "-functionSyntax:4"} Seq {
2323 import opened Wrappers
2424 import opened MergeSort
2525 import opened Relations
26- import Math
26+ import MathLib
2727
2828 /* *********************************************************
2929 *
@@ -427,7 +427,7 @@ module {:options "-functionSyntax:4"} Seq {
427427 ensures Max (xs) in xs
428428 {
429429 assert xs == [xs[0]] + xs[1.. ];
430- if |xs| == 1 then xs[0] else Math . Max (xs[0], Max(xs[1..]))
430+ if |xs| == 1 then xs[0] else MathLib . Max (xs[0], Max(xs[1..]))
431431 }
432432
433433 /* The maximum of the concatenation of two non-empty sequences is greater than or
@@ -453,7 +453,7 @@ module {:options "-functionSyntax:4"} Seq {
453453 ensures Min (xs) in xs
454454 {
455455 assert xs == [xs[0]] + xs[1.. ];
456- if |xs| == 1 then xs[0] else Math . Min (xs[0], Min(xs[1..]))
456+ if |xs| == 1 then xs[0] else MathLib . Min (xs[0], Min(xs[1..]))
457457 }
458458
459459 /* The minimum of the concatenation of two non-empty sequences is
Original file line number Diff line number Diff line change 99
1010include ".. / Collections/ Sequences/ Seq. dfy"
1111include ".. / BoundedInts. dfy"
12- include ".. / Math . dfy"
12+ include ".. / MathLib . dfy"
1313
1414include "Utils/ Views. dfy"
1515include "Utils/ Vectors. dfy"
@@ -20,7 +20,7 @@ include "Spec.dfy"
2020
2121module {:options "- functionSyntax:4"} JSON. Serializer {
2222 import Seq
23- import Math
23+ import MathLib
2424 import opened Wrappers
2525 import opened BoundedInts
2626 import opened Utils. Str
@@ -83,15 +83,15 @@ module {:options "-functionSyntax:4"} JSON.Serializer {
8383
8484 function Number (dec: Values .Decimal): Result< jnumber> {
8585 var minus: jminus := Sign (dec.n);
86- var num: jnum :- Int (Math .Abs(dec.n));
86+ var num: jnum :- Int (MathLib .Abs(dec.n));
8787 var frac: Maybe< jfrac> := Empty ();
8888 var exp: Maybe< jexp> :-
8989 if dec. e10 == 0 then
9090 Success (Empty())
9191 else
9292 var e: je := View. OfBytes (['e' as byte]);
9393 var sign: jsign := Sign (dec.e10);
94- var num: jnum :- Int (Math .Abs(dec.e10));
94+ var num: jnum :- Int (MathLib .Abs(dec.e10));
9595 Success (NonEmpty(JExp(e, sign, num)));
9696 Success (JNumber(minus, num, Empty, exp))
9797 }
Original file line number Diff line number Diff line change 55 * SPDX-License-Identifier: MIT
66 *******************************************************************************/
77
8- module {:options "- functionSyntax:4"} Math {
8+ module {:options "- functionSyntax:4"} MathLib {
99 function Min (a: int , b: int ): int
1010 {
1111 if a < b
You can’t perform that action at this time.
0 commit comments