Is finding the equivalence of two functions undecidable?

前端 未结 9 2103
迷失自我
迷失自我 2020-11-28 07:48

Is it impossible to know if two functions are equivalent? For example, a compiler writer wants to determine if two functions that the developer has written perform the same

9条回答
  •  渐次进展
    2020-11-28 08:35

    I think if you allow side effects, you can show that the problem can be morphed into the Post correspondence problem so you can't, in general, show if two functions are even capable of having the same side effects.

提交回复
热议问题