Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive with function argument refinement: local -> non-local #958

Open
nunoplopes opened this issue Nov 8, 2023 · 1 comment
Open
Labels
memory Memory Model

Comments

@nunoplopes
Copy link
Member

https://alive2.llvm.org/ce/z/ZDcarT

define void @src(ptr align 4 dereferenceable(128) %dst) {
  %src = alloca [128 x i8], align 4
  call void @accept_ptr(ptr nocapture %src) memory(argmem: readwrite)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %dst, ptr %src, i64 128, i1 false)
  ret void
}

define void @tgt(ptr align 4 dereferenceable(128) %dst) {
  call void @accept_ptr(ptr nocapture %dst) memory(argmem: readwrite)
  ret void
}


declare void @accept_ptr(ptr)
declare void @llvm.memcpy.p0.p0.i64(ptr, ptr, i64, i1)
@nunoplopes nunoplopes added the memory Memory Model label Nov 8, 2023
@nunoplopes
Copy link
Member Author

cc @nikic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory Memory Model
Projects
None yet
Development

No branches or pull requests

1 participant