What ASLR randomizes across two runs

This PIE (position-independent executable, the modern default) binary is run twice in a row on a Linux system with ASLR enabled (the default). Compare the two runs' printed addresses.

main.cpp
#include <cstdio>
#include <cstdlib>

int main() {
    int stack_var;
    void* heap_var = malloc(16);
    printf("stack: %p\n", (void*)&stack_var);
    printf("heap:  %p\n", heap_var);
    free(heap_var);
    return 0;
}

27 of 53 in Operating Systems