convert spoiler language and towards deobfuscation language
This commit is contained in:
1 parent
50a2a6293c
commit
4d6009b58f
98 files changed
+195
-358
No files matched your search
@@ -227,7 +227,8 @@ This allows for a convenient test suite:
|
||||
PATH=. eprog < test.in | diff - test.out
|
||||
```
|
||||
|
||||
### Spoilers:
|
||||
|
||||
### Deobfuscation:
|
||||
|
||||
If you do not want to puzzle out how it works, see [spoilers.html](spoilers.html).
|
||||
|
||||
|
||||
@@ -528,7 +528,7 @@ To stifle these complaints:</p>
|
||||
This allows for a convenient test suite:</p>
|
||||
<pre><code> ln -sf prog eprog
|
||||
PATH=. eprog < test.in | diff - test.out</code></pre>
|
||||
<h3 id="spoilers">Spoilers:</h3>
|
||||
<h3 id="deobfuscation">Deobfuscation:</h3>
|
||||
<p>If you do not want to puzzle out how it works, see <a href="spoilers.html">spoilers.html</a>.</p>
|
||||
<!--
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ Those techniques are about the use of 64 bit integers in order to do SIMD work,
|
||||
in a portable way without ever using any SSE/AVX or other non-portable compiler
|
||||
inline functions! The irony though, is that when compiling the program on modern
|
||||
X86 architectures indeed SSE/AVX is used for the long longs. Following is some
|
||||
"Spoiler" information, So if you want to play tough, stop reading at this point.
|
||||
deobfuscation information, So if you want to play tough, stop reading at this point.
|
||||
|
||||
|
||||
### Portable SIMD programming:
|
||||
|
||||
@@ -526,7 +526,7 @@ code more magical and efficient, at the same time.</p>
|
||||
in a portable way without ever using any SSE/AVX or other non-portable compiler
|
||||
inline functions! The irony though, is that when compiling the program on modern
|
||||
X86 architectures indeed SSE/AVX is used for the long longs. Following is some
|
||||
“Spoiler” information, So if you want to play tough, stop reading at this point.</p>
|
||||
deobfuscation information, So if you want to play tough, stop reading at this point.</p>
|
||||
<h3 id="portable-simd-programming">Portable SIMD programming:</h3>
|
||||
<p>So how is this done? Quite simply by using the whole <code>long long</code> arithmetic’s
|
||||
capability. I think the C99 standard assures us that <code>long long</code> has at least 64
|
||||
|
||||
@@ -62,7 +62,7 @@ terminal supports bold.
|
||||
|
||||
Hint 2: Do `wc -c prog.c`. This is very long one-liner.
|
||||
|
||||
Spoiler: Open the source with an editor like `vim` or `emacs`.
|
||||
Deobfuscation hint: Open the source with an editor like `vim` or `emacs`.
|
||||
|
||||
<!--
|
||||
|
||||
|
||||
@@ -431,7 +431,7 @@ Location: <a href="../../location.html#JP">JP</a> - <em>Japan</em></li>
|
||||
<p>Hint 1: Do <code>less prog.c</code>. You will see an <strong>emphasized</strong> string if your
|
||||
terminal supports bold.</p>
|
||||
<p>Hint 2: Do <code>wc -c prog.c</code>. This is very long one-liner.</p>
|
||||
<p>Spoiler: Open the source with an editor like <code>vim</code> or <code>emacs</code>.</p>
|
||||
<p>Deobfuscation hint: Open the source with an editor like <code>vim</code> or <code>emacs</code>.</p>
|
||||
<!--
|
||||
|
||||
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
|
||||
|
||||
@@ -64,7 +64,7 @@ the source code from all angles..
|
||||
* Find `main()` function.
|
||||
|
||||
|
||||
### Spoiler
|
||||
### Deobfuscation
|
||||
|
||||
This program is a joke PDP-11 emulator. ("ll-dpd" is embedded in the code.
|
||||
Read it upside down.)
|
||||
|
||||
@@ -438,7 +438,7 @@ the same reason. But I believe it is reasonably portable.</li>
|
||||
the source code from all angles..</li>
|
||||
<li>Find <code>main()</code> function.</li>
|
||||
</ul>
|
||||
<h3 id="spoiler">Spoiler</h3>
|
||||
<h3 id="deobfuscation">Deobfuscation</h3>
|
||||
<p>This program is a joke PDP-11 emulator. (“ll-dpd” is embedded in the code.
|
||||
Read it upside down.)</p>
|
||||
<p>You got it? This program is supposed to be used in this way:</p>
|
||||
|
||||
@@ -380,7 +380,7 @@ to be.
|
||||
|
||||
### Examine the algorithm
|
||||
|
||||
Spoilers ahead. Duh!
|
||||
Deobfuscation information ahead. Duh!
|
||||
|
||||
Pseudocode, with comments matching those in the C source:
|
||||
|
||||
|
||||
@@ -666,7 +666,7 @@ as <code>(256 + 128 + 4 + 2) * 512</code> minimizes the character count. That’
|
||||
judges get when they don’t like programs that are longer than they need
|
||||
to be.</p>
|
||||
<h3 id="examine-the-algorithm">Examine the algorithm</h3>
|
||||
<p>Spoilers ahead. Duh!</p>
|
||||
<p>Deobfuscation information ahead. Duh!</p>
|
||||
<p>Pseudocode, with comments matching those in the C source:</p>
|
||||
<pre><code> /* run */
|
||||
if (non-NULL and nonempty argv[1]) {
|
||||
|
||||
Reference in new issue
Block a user