<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quasistatic</author_name>
  <author_url>https://blog.hatena.ne.jp/quasistatic/</author_url>
  <blog_title>借りてきた猫のように静か</blog_title>
  <blog_url>https://quasistatic.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C</anon>
  </categories>
  <description>少し考えたら文法に則った入力が与えられている限りは大丈夫そう。 mpz_initされたyyvalは意味値スタックのトップyyvspにコピーされて、 その後の還元でmpz_clearされるので基本的に問題ない。 最終的に、 stmt: stmt expr '\n' { gmp_printf(&quot;%Zd\n&quot;, $2); mpz_clear($2); } ; による還元で最後のmpz_t型の意味値が消費されmpz_clearされる。 ただし、構文エラーが起こったときは単に'\n'まで読み捨てる同期化を行うだけなので、 意味値スタックに積まれたものからメモリリークしてしまうと思う。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fquasistatic.hatenadiary.jp%2Fentry%2F20110719%2Fp1&quot; title=&quot; 数式の評価を便利な道具で #2 - 借りてきた猫のように静か&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-19 00:00:00</published>
  <title> 数式の評価を便利な道具で #2</title>
  <type>rich</type>
  <url>https://quasistatic.hatenadiary.jp/entry/20110719/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
