The iOS Simulator consists of (some of) the userspace components of iOS compiled to run on macOS. This would be a full iPhone image running as-is via virtualization.
> You essentially can make money buying something.
Well, only if you can earn more over 12 months than the asset you bought depreciated. I think a better way to look at it is that you can earn a small discount.
Compilers are free to assume x is non-null at the time it’s dereferenced, so isn’t it true by definition? Do you have an example that doesn’t rely on undefined behavior?