Skip to content

C++ program that generates a C program that checks whether a number is even or odd through an unoptimized series of if statements.

License

Notifications You must be signed in to change notification settings

fiffy326/is_even.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is Even

C++ program that generates a C program that checks whether a number is even or odd through an unoptimized series of if statements.

Compilation

make MAX=65535

The MAX argument is the number of if statement branches to produce. The largest value possible is 18446744073709551614 (2^64 - 1).

By default, MAX is defined to be 65535.

Warning: It takes a VERY long time to compile for large MAX values.

About

C++ program that generates a C program that checks whether a number is even or odd through an unoptimized series of if statements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published