-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (27 loc) · 902 Bytes
/
index.html
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
<html>
<body></body>
<script>
var SlashA = {
onRuntimeInitialized: function () {
const sourceCode = 'input/0/save/input/add/output/.'
const byteCode = SlashA.source2ByteCode(sourceCode)
const input = new SlashA.VectorDouble()
input.push_back(2)
input.push_back(3)
const DATA_SIZE = 10
const LABEL_SIZE = 10
const RAND_SEED = 2147483647 //9999
const MAX_RTIME = 0
const MAX_LOOP_DEPTH = -1
const output = SlashA.runByteCode(
byteCode, input ,DATA_SIZE, LABEL_SIZE, RAND_SEED, MAX_RTIME, MAX_LOOP_DEPTH)
const failed = SlashA.checkFailed()
console.log((new Array(output.size())).fill(null).map((_, i) => output.get(i)))
byteCode.delete()
input.delete()
output.delete()
}
}
</script>
<script src="./build/slash-a.js"></script>
</html>