What is a "copy"?

FWIW, in Xcode version I used malloc_size (now commented in the snippet) that gave sane results (like 17) which hints that's a heap address. Don't know what to import to be able using it on godbolt. The stack address check should be easy (a simple check against current thread's stack base and size) but how to do a isHeap() check?