quebex

A software analysis framework built around the QBE intermediate language

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

 1function l $foo() {
 2@start
 3	%r =l add 0, 1
 4	ret %r
 5}
 6
 7function w $bar(l %x) {
 8@begin
 9	%y =l add 42, %x
10	ret %y
11}
12
13function w $bar(l %x, l %y) {
14@begin
15	%z =l add %y, %x
16	ret %z
17}
18
19function w $sampleCaller() {
20@begin
21	%a =w call $foo()
22	%b =    l    call $foo()
23	%c=l call $foo()
24	%d=l call $foo    ()
25	%e=w call $bar(l %d)
26	%f=w call $bar(l %d, l %d)
27	%g=w call $bar(l     %d   ,     l %d)
28	ret %a
29}