sqrt function works... finally... ;-;

This commit is contained in:
SpookyDervish
2025-10-18 19:28:54 +11:00
parent 70bc672885
commit 4bd698e330
8 changed files with 83 additions and 71 deletions

View File

@@ -46,7 +46,7 @@ if __name__ == "__main__":
parse_st: float = time.time()
program: Program = p.parse_program()
parse_et: float = time.time()
print(f"Parsed in {round((parse_et - parse_st) * 1000, 6)} ms.")
#print(f"Parsed in {round((parse_et - parse_st) * 1000, 6)} ms.")
if len(p.errors) > 0:
for err in p.errors:
@@ -67,7 +67,7 @@ if __name__ == "__main__":
compiler_st: float = time.time()
c.compile(program)
compiler_et: float = time.time()
print(f"Compiled in {round((compiler_et - compiler_st) * 1000, 6)} ms.")
#print(f"Compiled in {round((compiler_et - compiler_st) * 1000, 6)} ms.")
module: ir.Module = c.module
module.triple = llvm.get_default_triple()
@@ -101,4 +101,5 @@ if __name__ == "__main__":
et = time.time()
print(f"\n\nProgram returned: {result}\n=== Executed in {round((et - st) * 1000, 6)} ms. ===")
#print(f"\n\nProgram returned: {result}\n=== Executed in {round((et - st) * 1000, 6)} ms. ===")
exit(result)