update HTML modified by make www
This commit is contained in:
1 parent
09b8de5081
commit
c93d3e8a78
2 files changed
+27
-22
No files matched your search
+7
-8
@@ -128,17 +128,16 @@ Broukhis</a><br> Location: <a href="../../location.html#US">US</a>
|
||||
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> all</span></code></pre></div>
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<pre><code>STATUS: known bug - please help us fix</code></pre>
|
||||
<p>For more detailed information see <a href="/bugs.md#1995-leo">1995
|
||||
leo in bugs.md</a>.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./leo</span> [ deep ] [ right ] [ Variable ] [ cycle [ freq ] ]</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./leo</span> [ deep ] [ right ] [ Variable ] [ cycle [ freq ] ]</span></code></pre></div>
|
||||
<p>See the author’s information below on these details.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./leo</span> 1 <span class="kw">|</span> <span class="fu">cat</span> <span class="at">-</span> /dev/tty <span class="kw">|</span> <span class="fu">gs</span> <span class="at">-</span></span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="ex">./leo</span> 37 80 <span class="kw">|</span> <span class="fu">cat</span> <span class="at">-</span> /dev/tty <span class="kw">|</span> <span class="fu">gs</span> <span class="at">-</span></span></code></pre></div>
|
||||
<p>If you don’t have gs or an equivalent postscript viewer, try:</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">""</span> <span class="kw">|</span> <span class="ex">./leo</span> 1 <span class="op">></span> foo.ps</span></code></pre></div>
|
||||
<p>and send foo.ps to your local postscript printer or open it in an
|
||||
appropriate application (e.g. GIMP).</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>Press return after each image is drawn.</p>
|
||||
<p>The variable names are element-ary. If you find this confusing,
|
||||
|
||||
+20
-14
@@ -130,18 +130,19 @@ Location: <a href="../../location.html#IL">IL</a> <br><br></li>
|
||||
<p>There is an alternate version that is slightly deobfuscated. See <a
|
||||
href="#alternate-code">alternate code</a> below.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./zeitak</span> <span class="op"><</span> file.c</span></code></pre></div>
|
||||
<p>where <code>file.c</code> is the file to be checked for nesting
|
||||
errors. For example, you may try <a href="incorrect.c">incorrect.c</a>
|
||||
and the program itself.</p>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./zeitak</span> <span class="op"><</span> file</span></code></pre></div>
|
||||
<p>where <code>file</code> is the file to be checked for nesting errors.
|
||||
For example, you may try <a href="incorrect.c">incorrect.c</a> and the
|
||||
program itself. You may also run it on text files that are not code.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> test</span></code></pre></div>
|
||||
<p>NOTE: it prints an error and exits on the first nesting error so it
|
||||
will not detect multiple issues!</p>
|
||||
<p>NOTE: the program prints an error and exits on the first nesting
|
||||
error so it will not detect multiple issues.</p>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
<p>This version, <a href="zeitak.alt.c">zeitak.alt.c</a>, is a version
|
||||
that has been slightly deobfuscated. You may find reading it helpful in
|
||||
your attempt to understand this extremely subtle entry.</p>
|
||||
<p>The alternate code, <a href="zeitak.alt.c">zeitak.alt.c</a>, is a
|
||||
version that was slightly deobfuscated by the author. You may find
|
||||
reading it helpful in your attempt to understand this extremely subtle
|
||||
entry.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> alt</span></code></pre></div>
|
||||
<h3 id="alternate-use">Alternate use:</h3>
|
||||
@@ -150,10 +151,15 @@ above.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>This is an extremely subtle and twisted piece of Gold award winning
|
||||
code!</p>
|
||||
<p>The judges had spent a considerable amount of time analyzing this
|
||||
entry. At one point we spent <a
|
||||
<p>The judges spent a considerable amount of time analyzing this entry.
|
||||
At one point we spent <a
|
||||
href="https://web.archive.org/web/20130925190722/https://twitter.com/ioccc/status/252162898800033792">18
|
||||
minutes</a> just to understand 18 key characters of this code.</p>
|
||||
minutes</a> just to understand <em>18 key
|
||||
<strong>characters</strong></em> of this code.</p>
|
||||
<p>NOTE: if you use vim to view the code, make sure to do:</p>
|
||||
<pre><code>:set tabstop=4</code></pre>
|
||||
<p>in command mode, before looking at the code, to see the correct
|
||||
layout.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="nesting-errors-detector">Nesting Errors Detector</h3>
|
||||
<h4 id="what-does-it-do">What does it do</h4>
|
||||
@@ -173,7 +179,7 @@ characters around it’s position.</p>
|
||||
<li>Ignores parenthesis inside strings or character constants, so no
|
||||
errors will be detected in the following line:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">")"</span><span class="op">);</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">")"</span><span class="op">);</span></span></code></pre></div>
|
||||
<ul>
|
||||
<li>Doesn’t get confused by the <a
|
||||
href="/1984/anonymous/anonymous.c">1984/anonymous</a> entry!</li>
|
||||
@@ -183,7 +189,7 @@ href="/1984/anonymous/anonymous.c">1984/anonymous</a> entry!</li>
|
||||
<li>Escapes (e.g. <code>\"</code>) are ignored, so the following line
|
||||
will produce an error:</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">"</span><span class="sc">\"</span><span class="st">"</span><span class="op">);</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>printf<span class="op">(</span><span class="st">"</span><span class="sc">\"</span><span class="st">"</span><span class="op">);</span></span></code></pre></div>
|
||||
<h4 id="obfuscation">Obfuscation</h4>
|
||||
<p><a href="/years.html">IOCCC entries</a> already contain entries
|
||||
without digits, control-flow keywords and certain operators in their
|
||||
|
||||
Reference in new issue
Block a user