-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
72 lines (58 loc) · 1.79 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
DESTDIR ?= $(HOME)/bin
CC=gcc
CONTRIB=./contrib
default: all
all: leo3
static: TreeLimitedRunStatic leo3
leo3:
sbt assembly
mkdir -p bin
cp target/scala-2.13/leo3.jar bin/leo3.jar
cat ./src/main/resources/scripts/exec_dummy bin/leo3.jar > bin/leo3
chmod +x bin/leo3
install:
install -m 0755 -d $(DESTDIR)
install -m 0755 bin/leo3 $(DESTDIR)
clean:
rm -rf ./target/
rm -rf ./bin/
native:
@echo Creating native Leo-III image with graalvm
$(GRAALVM_HOME)/bin/native-image -jar bin/leo3.jar \
-H:+ReportExceptionStackTraces \
-H:Name="leo3-bin" \
--initialize-at-build-time=scala.runtime.Statics$$VM \
-H:ConfigurationFileDirectories=${CONTRIB}/graalvm/ \
-O2 \
--no-server \
--no-fallback \
--static \
--libc=musl
mv leo3-bin bin/leo3-bin
native-profile:
@echo Creating native Leo-III image with graalvm
$(GRAALVM_HOME)/bin/native-image -jar bin/leo3.jar \
-H:+ReportExceptionStackTraces \
-H:Name="leo3-profile" \
--initialize-at-run-time=leo.modules.modes.Normalization\$$ \
--initialize-at-build-time=scala.runtime.Statics$$VM \
-H:ConfigurationFileDirectories=${CONTRIB}/graalvm/ \
--no-server \
--no-fallback \
--pgo-instrument
native-profile-run:
@echo run LEO profile
./leo3-profile ./src/test/resources/problems/choice/SYO556\^1.p --seq -t 300 --atp cvc4 --atp eprover
native-pgo:
@echo Creating native Leo-III image with graalvm
$(GRAALVM_HOME)/bin/native-image -jar bin/leo3.jar \
-H:+ReportExceptionStackTraces \
-H:Name="leo3-pgo" \
--initialize-at-run-time=leo.modules.modes.Normalization\$$ \
-H:ReflectionConfigurationFiles=${CONTRIB}/graalvm/reflect-config.json \
-H:ResourceConfigurationFiles=${CONTRIB}/graalvm/resource-config.json \
-O2 \
--no-server \
--static \
--pgo
mv leo3-pgo bin/leo3-pgo