qute

A software analysis framework built around the QBE intermediate language

git clone https://git.8pit.net/qute.git

 1export
 2function w $main() {
 3@start.1
 4	%.1 =w copy 42
 5	%.2 =w copy 0
 6@body.2
 7	jnz %.1, @if_true.3, @if_false.4
 8@if_true.3
 9	jnz %.2, @if_true.5, @if_false.6
10@if_true.5
11	%.1 =w copy 5
12	jmp @if_join.7
13@if_false.6
14	%.r =w copy 0
15	jmp @return
16@if_join.7
17@if_false.4
18	%.r =w copy 23
19	jmp @return
20@return
21	ret %.r
22}