Added ssa package
All checks were successful
/ test (push) Successful in 22s

This commit is contained in:
Eduard Urbach 2025-06-20 21:05:49 +02:00
parent ec300c9a70
commit 89f375f4fc
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
8 changed files with 234 additions and 0 deletions

14
src/ssa/ssa_test.go Normal file
View file

@ -0,0 +1,14 @@
package ssa_test
import (
"testing"
"git.urbach.dev/cli/q/src/ssa"
)
func TestBlock(t *testing.T) {
block := &ssa.Block{}
block.Append(ssa.Instruction{Type: ssa.Int, Int: 1})
block.Append(ssa.Instruction{Type: ssa.Int, Int: 2})
block.Append(ssa.Instruction{Type: ssa.Add, Parameters: []ssa.Index{0, 1}})
}