- 18 Nov, 2022 3 commits
-
-
Sven-Bodo Scholz authored
compiles fp16 basic stuff now!
-
steven authored
-
steven authored
-
- 05 Nov, 2022 1 commit
-
-
Sven-Bodo Scholz authored
-
- 04 Nov, 2022 2 commits
-
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
also started extending the scanner / parser
-
- 03 Nov, 2022 1 commit
-
-
Hans-Nikolai Viessmann authored
fixes issue-2317: missed protection of \n in STRstring2SafeCEncoding in str.c See merge request !202
-
- 02 Nov, 2022 2 commits
-
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
This was not needed so far as in the old ctinfo implementation all \n were encoded by @. The new, customisable error messages in ctinfo no longer do this.
-
- 31 Oct, 2022 1 commit
-
-
Hans-Nikolai Viessmann authored
improved readability of SCS (symbolic constant simplification) Closes #2316 See merge request !201
-
- 29 Oct, 2022 3 commits
-
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
-
Sven-Bodo Scholz authored
mainly replaced SCSisRelationalOnDyadicFn by relation specific versions. This allowed for folding the ones for <= with >, and >= with <. It also made SCSextractCompositionInfo redundant which was a rather complex, ie. difficult to understand abstraction in the first place.
-
- 27 Oct, 2022 1 commit
-
-
Sven-Bodo Scholz authored
-
- 13 Aug, 2022 4 commits
-
-
Hans-Nikolai Viessmann authored
Error streamlining Closes #2282 See merge request !176
-
Hans-Nikolai Viessmann authored
also force correct include path for macos systems
-
Hans-Nikolai Viessmann authored
-
Hans-Nikolai Viessmann authored
With this change, we avoid having to initially link against sac2cShared. Furthermore, we remove the base-env links from runtime tests as these make no use of sac2cShared functionality. Within the base-env source file we remove the explicit header inclusion and instead use an extern definition; this is done to avoid having to depend on XSL generated files (e.g. `types.h` includes `types_nodeypes.h`). Finally we add a readme on how to create new tests.
-
- 12 Aug, 2022 1 commit
-
-
Michiel Verloop authored
-
- 06 Jul, 2022 2 commits
-
-
Michiel Verloop authored
-
Michiel Verloop authored
• Make two functions static in ctformatting.c. • Remove global.h import from ctinfo.c. • Move CTFintialize from main to OPTanalyseCommandline. • More changes not worth mentioning.
-
- 30 Jun, 2022 19 commits
-
-
Michiel Verloop authored
• Add CTIerrorBegin/End call to a CTIerrorContinued call site that was missed in an earlier commit. • Add end-to-end test for CTIerrorBegin/Continued/End. • Rename error end-to-end tests to have consistent naming. • Expand test-error-generic to additionally test line wrapping and custom header arguments. • Fix inconsistent CTIerror behaviour by moving the CTFinitialize call from OPTcheckOptionConsistency to main.c.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Refactor ctinfo.c to rely on ctformatting.h. ○ Decouple various calls to ctformatting.h using macros. ○ Remove ProcessMessage, Loc2buf, PrintMessage, FinalizeMessageBegin and FinalizeMessage. ○ Refactor CTIerrorBegin/Continued/End. - Refactored calling locations to properly make use of these functions. ○ Remove CTIwarnContinued (Had no uses and CTIwarnBegin/End did not yet exist). ○ Add CTIerrorRaw as a companion function to CTIgetErrorMessageVA. - Refactored calling locations of CTIgetErrorMessageVA to use CTIerrorRaw when printing output. • Add sac2cShared as a dependency for base-test-environment to avoid linking before types_nodetype.h is generated. • Add SBUFprintd function variant that deallocates the string argument. • Fix TYextendBottomError adding a newline if the error message to concatenate is null. • Refactor errors in type_errors.c to make use of str_buffer.h. - This also fixes two memory leaks. • Remove all sources of '@' characters in strings where they were used as newlines. • Refactor all sinks of '@' characters to instead consume newlines. ○ An exception is in ctformatting.c, because the source of the @ character is a compiler argument and cannot generate newlines. • Remove outdated README from the tests/errors folder (An updated README exists in the tests folder). • Refactor error end-to-end tests. ○ Add Mac compatibility - the tests no longer make use of the -P flag which BSD grep does not support. ○ Remove the case insensitive flags. • Rename test-type_inference_error.sac to test-type-inference-error.sac. • Rename test-overload_error.sac to test-overload-error.sac. • Rename function CTFvcreateMessageLoc to CTFvCreateMessageLoc.
-
Michiel Verloop authored
• Fix a warning for cti-single-line being issued when it should not, and vice versa.
-
Michiel Verloop authored
• Changed all mentions of unit tests to end-to-end tests. • Document how to reuse program output to run multiple checks on it. • Document how to use run.sh for an entire folder at once. • Miscellaneous improvements.
-
Michiel Verloop authored
-
Michiel Verloop authored
• CTFcreateMessageContinued can now be called without providing the multiline header. • The 'current' multiline header is stored as a static variable in ctformatting.c. • The functions CTFcreateMessage(Begin)(Loc) assign the multiline header. • CTFcreateMessageEnd frees the multiline header and sets it to NULL. • The CTFcreateMessageBegin functions call CTFcreateMessageContinued to parse remaining_lines instead of returning them unparsed. • Updated tests for the changed behaviour.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
• Fix wrong calls to CTIabort • Potential fix to ignore -Wformat-zero-length in a few test cases.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Runtime unit-tests (cuda/hwloc) are broken because of linking errors. • Main.c now calls CTFinitialize.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Fix @ being replaced with newlines in the multiline header. • Fix @ being replaced with spaces instead of a newline in the first line header if cti-single-line is disabled. • Add tests for replacing @ with \n or a space for the first line header.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
In the previous commit, static const globals were defined in ctformatting.c, alongside getter functions. The getters are not allowed, and lead to a hang. The fix is to instead define the globals in the header file as macros.
-