Skip to content

Commit 1256c10

Browse files
Optimized semantics example program scripts and misc, new import script
1 parent 1223fa7 commit 1256c10

File tree

8 files changed

+13421
-3
lines changed

8 files changed

+13421
-3
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
if [ $# -ne 1 ]; then
4+
echo "Usage: $0 <program_name>"
5+
echo "Example: $0 my_program"
6+
exit 1
7+
fi
8+
9+
PROGRAM_NAME=$1
10+
11+
Holmake ${PROGRAM_NAME}Theory
12+
13+
cp ${PROGRAM_NAME}.sexp compilation/
14+
15+
cd compilation
16+
17+
./compile_cake.sh ${PROGRAM_NAME}
18+
19+
cd ..
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The easiest way to compile to CakeML is to download and extract a suitable release (e.g. for (Trindemossen-2)[https://github.com/CakeML/cakeml/releases/tag/vHOL-Trindemossen-2]) here and keep the existing version of `basis_ffi.c`, which enables you to use `build_cake.sh` in the directory below. If you have already compiled the entire CakeML repository, you may just edit `compile_cake.sh` to use the compiler from there instead.

0 commit comments

Comments
 (0)