-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (86 loc) · 2.73 KB
/
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
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
<!DOCTYPE html>
<html>
<head>
<title>Bril Playground</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="src/style.css" />
</head>
<body>
<div id="app">
<div id="header">
<h2>
<a href="https://capra.cs.cornell.edu/bril/">Bril</a> Playground
<a href="https://github.com/agentcooper/bril-playground">
<img
src="https://github.com/favicon.ico"
style="width: 18px; height: 18px"
/>
</a>
</h2>
<fieldset id="settings">
<span>
<label
>Source
<select id="source-select">
<option>condition.bril</option>
<option>for-loop.bril</option>
<option>while.bril</option>
<option>factorial.bril</option>
<option>condition-nested.bril</option>
</select>
</label>
</span>
<span
><button style="margin-left: 2em" id="run-button">Run code</button>
<input
style="margin-left: 0.5em; width: 8em"
type="text"
value=""
id="run-arguments-input"
placeholder="Arguments"
/>
<small style="margin-left: 0.5em; color: #6c6c6c"
>(output goes to JS console)</small
>
</span>
<span style="flex-grow: 1"></span>
<span>
<label>
CFG function
<input
style="width: 8em"
type="text"
value=""
id="cfg-function-name"
placeholder="main"
/>
</label>
</span>
<span style="margin-left: 2em">
<label for="ssa-checkbox" style="margin-left: 0.3em">
<input
type="checkbox"
id="ssa-checkbox"
style="vertical-align: middle"
/>
<span style="vertical-align: middle">Show SSA form</span>
</label>
</span>
<span style="margin-left: 2em">
<label for="on-hover-select">On hover node <i>H</i></label>
<select id="on-hover-select">
<option value="dominators">Show nodes that dominate H</option>
<option value="dominatedBy">Show nodes dominated by H</option>
<option value="frontiers">Show dominance frontier of H</option>
</select>
</span>
</fieldset>
</div>
<div id="main">
<div id="editor"></div>
<div id="graph"></div>
</div>
</div>
<script defer type="module" src="./src/main.ts"></script>
</body>
</html>