Undefined behaviour oriented programming is the best !
Go to file
2021-08-19 17:08:47 +02:00
.gitignore feat: add UB-oriented isEven program 2021-08-19 16:58:41 +02:00
isEven.cpp feat: add UB-oriented isEven program 2021-08-19 16:58:41 +02:00
isEven.h feat: add UB-oriented isEven program 2021-08-19 16:58:41 +02:00
main.cpp feat: add UB-oriented isEven program 2021-08-19 16:58:41 +02:00
makefile fix: correction fo command for building assembly 2021-08-19 17:08:47 +02:00
README.md fix: correction fo command for building assembly 2021-08-19 17:08:47 +02:00

This program, compiled with clang 12+, should work. However, it is using an undefined behaviour in the isEven.cpp file.

How to use

Run

make run

If you wish to see the assembly :

make build-assembly

Source

Originates from https://twitter.com/jckarter/status/1428072308351016969