Skip to content

Commit d2cd9e1

Browse files
authored
Merge pull request #4204 from mtzguido/star-is-multiplication
Make * be multiplication by default
2 parents 94a0ebb + 1d070e4 commit d2cd9e1

262 files changed

Lines changed: 480 additions & 712 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Smoke test
103103
run: |
104104
./fstar/bin/fstar.exe fstar/lib/fstar/ulib/Prims.fst -f
105-
echo -e "module A\nopen FStar.Mul\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
105+
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
106106
./fstar/bin/fstar.exe A.fst
107107
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
108108
./fstar/bin/fstar.exe --admit_smt_queries true B.fst

.github/workflows/build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Smoke test
8484
run: |
8585
./fstar/bin/fstar.exe --admit_smt_queries true fstar/lib/fstar/ulib/Prims.fst -f
86-
echo -e "module A\nopen FStar.Mul\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
86+
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
8787
./fstar/bin/fstar.exe --admit_smt_queries true A.fst
8888
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
8989
./fstar/bin/fstar.exe --admit_smt_queries true B.fst

.github/workflows/build-opam.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Smoke test
3939
run: |
40-
echo -e "module A\nopen FStar.Mul\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
40+
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
4141
eval $(opam env) && fstar.exe A.fst
4242
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
4343
eval $(opam env) && fstar.exe B.fst

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
cd fstar-*
182182
.\fstar\bin\fstar.exe fstar\lib\fstar\ulib\Prims.fst -f
183183
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' # Make sure we write UTF-8 files
184-
echo "module A`nopen FStar.Mul`nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
184+
echo "module A`nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
185185
.\fstar\bin\fstar.exe --already_cached *,-A A.fst
186186
echo "module B`n#lang-pulse`nopen Pulse`nfn test (x:int) returns int { (x+1); }" > B.fst
187187
.\fstar\bin\fstar.exe B.fst

.github/workflows/nightly-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Smoke test
3636
run: |
3737
./fstar/bin/fstar.exe fstar/lib/fstar/ulib/Prims.fst -f
38-
echo -e "module A\nopen FStar.Mul\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
38+
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
3939
./fstar/bin/fstar.exe A.fst
4040
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
4141
./fstar/bin/fstar.exe B.fst
@@ -74,7 +74,7 @@ jobs:
7474
- name: Smoke test
7575
run: |
7676
./out/bin/fstar.exe out/lib/fstar/ulib/Prims.fst -f
77-
echo -e "module A\nopen FStar.Mul\nlet _ = assert (forall x. 1 + x*x > 0)" > A.fst
77+
echo -e "module A\let _ = assert (forall x. 1 + x*x > 0)" > A.fst
7878
./out/bin/fstar.exe A.fst
7979
echo -e "module B\n#lang-pulse\nopen Pulse\nfn test (x:int) returns int { (x+1); }" > B.fst
8080
./out/bin/fstar.exe B.fst

.scripts/FStar.IntN.fstip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open FStar.Int
2-
open FStar.Mul
32

43
(* NOTE: anything that you fix/update here should be reflected in [FStar.UIntN.fstp], which is mostly
54
* a copy-paste of this module. *)

.scripts/FStar.IntN.fstp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open FStar.Int
2-
open FStar.Mul
32

43
#set-options "--fuel 0 --ifuel 0"
54

.scripts/FStar.UIntN.fstip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
/// https://github.com/FStarLang/FStar/issues/1757
2121

2222
open FStar.UInt
23-
open FStar.Mul
2423

2524
(** Abstract type of machine integers, with an underlying
2625
representation using a bounded mathematical integer *)

.scripts/FStar.UIntN.fstp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open FStar.UInt
2-
open FStar.Mul
32

43
#set-options "--fuel 0 --ifuel 0"
54

.scripts/fstardoc/tests/backticks.fst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ val op_Multiply : int -> int -> Tot int
77
let rec pow2 (x:nat) : Tot pos =
88
match x with
99
| 0 -> 1
10-
| _ -> 2 `op_Multiply` (pow2 (x-1))
10+
| _ -> 2 * (pow2 (x-1))

0 commit comments

Comments
 (0)