qute

A software analysis framework built around the QBE intermediate language

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

 1type :.6 = align 4 { 8 }
 2type :.10 = align 8 { 16 }
 3type :.14 = align 8 { 16 }
 4type :.95 = align 8 { 32 }
 5export function :.95 $somefunc(w %status.L103.val)
 6{
 7@somefunc.body
 8@.L64
 9	%status.L103 =l	alloc4	4
10	%.L54 =l	alloc8	32
11		storew	%status.L103.val,%status.L103
12	%.L55 =l	add	%.L54,0
13	%.L56 =w	loadsw	%status.L103
14		storew	%.L56,%.L55
15	%.L58 =l	add	%.L54,8
16		storel	0,%.L58
17	%.L60 =l	add	%.L54,16
18		storel	0,%.L60
19	%.L62 =l	add	%.L54,24
20		storew	0,%.L62
21		ret	%.L54
22}
23export function w $main()
24{
25@main.body
26@.L72
27	%s.L107 =l	alloc8	32
28	%.L67 =:.95	call	$somefunc(w 23)
29		blit	%.L67,%s.L107,32
30	%.L70 =l	add	%s.L107,0
31	%.L71 =w	loadsw	%.L70
32		ret	%.L71
33@.L73
34		ret	0
35}