Skip to content

Commit

Permalink
fix: merged dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiq1971 committed Feb 10, 2025
2 parents 3c71793 + 05d41c2 commit 289b2a2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
3 changes: 1 addition & 2 deletions analyser/opcode/opcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"slices"
"strings"

"github.com/ChainSafe/vm-compat/common"

"github.com/ChainSafe/vm-compat/analyser"
"github.com/ChainSafe/vm-compat/asmparser"
"github.com/ChainSafe/vm-compat/asmparser/mips"
"github.com/ChainSafe/vm-compat/common"
"github.com/ChainSafe/vm-compat/profile"
)

Expand Down
3 changes: 1 addition & 2 deletions analyser/syscall/asm_syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import (
"path/filepath"
"slices"

"github.com/ChainSafe/vm-compat/common"

"github.com/ChainSafe/vm-compat/analyser"
"github.com/ChainSafe/vm-compat/asmparser"
"github.com/ChainSafe/vm-compat/asmparser/mips"
"github.com/ChainSafe/vm-compat/common"
"github.com/ChainSafe/vm-compat/profile"
)

Expand Down
30 changes: 30 additions & 0 deletions examples/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"syscall"
)

<<<<<<< HEAD

Check failure on line 7 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: non-declaration statement outside function body

Check failure on line 7 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Lint

expected declaration, found '<<' (typecheck)

Check failure on line 7 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Unit Tests

syntax error: non-declaration statement outside function body
func main() {
lvl31(0)
lvl32(0)
Expand All @@ -27,4 +28,33 @@ func lvl22(v0 int) {

func lvl1(v0 int) {
syscall.RawSyscall6(1, 0, 0, 0, 0, 0, 0)
=======

Check failure on line 31 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: unexpected ==, expected }

Check failure on line 31 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Unit Tests

syntax error: unexpected ==, expected }
var ptr = syscall.SYS_OPENAT

func RawSyscall(trap uintptr) {
syscall.RawSyscall6(trap, 0, 0, 0, 0, 0, 0)
}

func Syscall2(t uintptr) {
RawSyscall(t)
}

func main() {
var trap uintptr = syscall.SYS_READ
if true {
trap = getTrap()
}
Syscall2(trap)
}

func getTrap() uintptr {
if true {
return getTrap2()
} else {
return uintptr(ptr)
}
>>>>>>> 05d41c22f14455c84c6444320b683cca7e767f69

Check failure on line 56 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: unexpected >>, expected } (typecheck)

Check failure on line 56 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Lint

expected statement, found '>>' (typecheck)

Check failure on line 56 in examples/sample.go

View workflow job for this annotation

GitHub Actions / Unit Tests

syntax error: unexpected >>, expected }
}
func getTrap2() uintptr {
return syscall.SYS_WRITE
}

0 comments on commit 289b2a2

Please sign in to comment.