From: Ben S. <pow...@16...> - 2014-02-17 07:50:08
|
Hello, In line 4289 stack_aop is called, then in line 4304 a pop is generated if previous stack_aop call is OK. However neither stack_aop really does a push operation, nor there is a precedent push, could that be a issue ? Ben |
From: Philipp K. K. <pk...@sp...> - 2014-02-17 08:50:50
|
Am 17.02.2014 08:49, schrieb Ben Shi: > Hello, > > In line 4289 stack_aop is called, then in line 4304 a pop is generated > if previous stack_aop call is OK. > > However neither stack_aop really does a push operation, nor there is a > precedent push, could that be a issue ? > > Ben To me it looks like this: In line 4285, other_stacked is initialized to 0. In line 4289, we call stack_aop(). If it does a push, other_stacked is set to a nonzero value, otherwise it stays zero. In lines 4304-4305, we do a pop is other_stacked is nonzero. All three lines are executed for each iteration of the loop, so we should get one pop for each push. Philipp |