-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.xml
More file actions
164 lines (149 loc) · 5.2 KB
/
build.xml
File metadata and controls
164 lines (149 loc) · 5.2 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<project name="apposcopy" default="jar">
<dirname property="this.dir" file="${ant.file}"/>
<property name="target.loc" location="${target}"/>
<target name="analyze" depends="jar">
<java classname="com.apposcopy.synthesis.Main"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
<arg value="${target.loc}"/>
</java>
</target>
<target name="sigGen">
<java classname="com.apposcopy.synthesis.SignatureGen"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
<arg value="${target.loc}"/>
<arg value="${encoding}"/>
<arg value="${size}"/>
<arg value="${freq}"/>
</java>
</target>
<target name="reachable">
<java classname="com.apposcopy.synthesis.ReachablePaths"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
<arg value="${sig}"/>
</java>
</target>
<target name="score">
<java classname="com.apposcopy.synthesis.SignatureDiff"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
<arg value="${sig}"/>
<arg value="${zero}"/>
<arg value="${limit}"/>
<arg value="${function}"/>
<arg value="${freq}"/>
</java>
</target>
<target name="sigMatch" depends="jar">
<java classname="com.apposcopy.synthesis.SignatureMatching"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
<arg value="${sig}"/>
<arg value="${test}"/>
</java>
</target>
<target name="init">
<mkdir dir="classes"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<copy todir="classes/">
<fileset dir="datalog">
</fileset>
</copy>
<javac srcdir="src" destdir="classes" debug="true">
<classpath>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile"
description="generate the distribution" >
<jar jarfile="apposcopy.jar" basedir="classes"/>
</target>
<target name="clean"
description="clean up" >
<delete dir="classes"/>
<delete file="apposcopy.jar"/>
</target>
<target name="exp" depends="jar">
<java classname="com.apposcopy.synthesis.Exp"
maxmemory="4g"
fork="true"
failonerror="true">
<jvmarg value="-ea" />
<classpath>
<pathelement location="./apposcopy.jar"/>
<pathelement location="bin/stamp.main.jar"/>
<pathelement location="lib/soot.jar"/>
<pathelement location="lib/stamp.chord.jar"/>
<pathelement location="lib/gson-2.3.1.jar"/>
<pathelement location="lib/org.sat4j.core_2.3.5.v201308161310.jar"/>
<pathelement location="lib/org.sat4j.pb_2.3.5.v201404071733.jar"/>
</classpath>
</java>
</target>
</project>