To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 6e28ed40 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

Fixed 3 minor bugs

	Will work properly if uint64_t is not the same as unsigned long
	Fixed make no_mu
	Will complain about invalid syntax if your entire UIR file isn't valid
parent 9686fb7d
......@@ -19,4 +19,4 @@ static:
g++ -O3 main.cpp parser/*.cpp -std=gnu++14 -Wall -I./include/ ./lib/libantlr4-runtime.a ./lib/libmu.a -lpthread -lm -ldl -lgmpxx -lgmp -o muc
g++ -O3 main.cpp parser/*.cpp -std=gnu++14 -DNO_MU -Wall -I./include/ -L./lib/ -lantlr4-runtime -o muc
g++ -O3 main.cpp parser/*.cpp -std=gnu++14 -DNO_MU -Wall -I./include/ -L./lib/ -lantlr4-runtime -lgmpxx -lgmp -o muc
......@@ -17,7 +17,7 @@
grammar UIR;
: topLevelDef*
: topLevelDef* EOF
......@@ -65,7 +65,9 @@ std::string list_to_string<std::vector<std::string>>(std::vector<std::string> v)
return value;
mpz_class mask_64(UINT64_MAX);
// This is converted to a string incase UINT64_MAX dosn't fit in an unsigned long
// (an mpz_class can't be constructed from a long long)
mpz_class mask_64(std::to_string(UINT64_MAX));
bool error = false; // Was there a syntax error?
std::string primordial_name;
std::stack<std::string> parent_names {}; // The names of the parent entitys
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment