1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>

int main(int argc, char* argv[]) {
    // BAD CODE follows

    int n;  // OOPS!!! not initialized.
    if(n > 1000000) {
        printf("n is a millionaire!\n");
    }
    else {
        printf("n is a 99%%er\n");
    }
    return EXIT_SUCCESS;
    /* Conditional jump or move depends on uninitialised value(s)
     *    at 0x40059B: main (conditional_jump_1.c:8)
     *       └──┬───┘                    ↓
     *       instruction address     line of conditional jump
     */
}
/* vim: set tabstop=4 shiftwidth=4 fileencoding=utf-8 noexpandtab: */

© Copyright 2021 Alexander J. Quinn         This content is protected and may not be shared, uploaded, or distributed.