Commit 1fd8c7b
committed
feat(assert): add idiomatic assertion capability
This commit implements the idiomatic assertion feature described
by Rouson et al. [1]. The leverages the machinery for writing
test-diagnosis expressions inspired by natural language and
supports the same for assertion diagnoses. To accomplish this,
the commit adds
1. An assertion_diagnosis_t type that trivially extends Julienne's
test_diagnosis_t type, i.e., without adding components or
procedure bindings, and
2. A generic assert interface and corresponding julienne_assert
subroutine, wherein
a. The subroutine's interface body contains only one dummy
argument: an assertion_diagnosis_t object and where
b. The subroutine's definition contains only one executable
statement: a call to the Assert dependency's "assert"
subroutine.
[1] Rouson, D., Bonachea, D., and Rasmussen, K. (2025) "Idiomatic
correctness-checking via Fortran 2023 using Julienne,"
US-RSE '25, under review.1 parent 9fd8749 commit 1fd8c7b
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
50 | 74 | | |
51 | 75 | | |
52 | 76 | | |
| |||
0 commit comments