You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-9Lines changed: 51 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
# VMC: a Library for Verified Monte Carlo Algorithms
2
2
3
-
The `DafnyVMC` module introduces utils for probabilistic reasoning in Dafny. At the moment, the API is intentionally limited in scope, and only supports compilation to Java. For the future, we plan to extend both the functionality and the range of supported languages.
3
+
The `DafnyVMC` module introduces utils for probabilistic reasoning in Dafny. At the moment, the API is intentionally limited in scope, and only supports compilation to Java and Python. For the future, we plan to extend both the functionality and the range of supported languages.
4
4
5
-
## Java API Example
5
+
## Java
6
+
7
+
### Java API
6
8
7
9
```java
8
10
importDafnyVMC.Random;
@@ -26,31 +28,71 @@ class Test {
26
28
}
27
29
```
28
30
29
-
##Dafny Examples
31
+
### Java Examples
30
32
31
-
To run the examples in the `docs/dafny` directory, use the following commands:
33
+
To run the examples in the `docs/java` directory, use the following commands:
34
+
35
+
```bash
36
+
$ export TARGET_LANG=java
37
+
$ bash scripts/build.sh
38
+
$ bash build/java/run_samplers.sh
39
+
$ bash build/java/run_shuffling.sh
40
+
```
41
+
42
+
To run the tests in the `docs/dafny` directory, use the following commands:
0 commit comments