summary refs log tree commit diff stats
path: root/compiler/semfold.nim
Commit message (Expand)AuthorAgeFilesLines
* fixes #22389; fixes #19840; don't fold paths containing `addr` (#23807)ringabout2024-07-091-4/+1
* fixes #23784; don't allow fold paths containing `nkAddr` (#23792)ringabout2024-07-031-1/+1
* fixes #5901 #21211; don't fold cast function types because of gcc 14 (#23683)ringabout2024-06-051-1/+2
* remove unused magics: mIntToStr, mInt64ToStr, mFloatToStr (#23486)ringabout2024-04-091-2/+0
* Types: Refactorings; step 1 (#23055)Andreas Rumpf2023-12-121-2/+2
* IC: progress and refactorings (#22961)Andreas Rumpf2023-11-201-3/+3
* prepare for the enforcement of `std` prefix (#22873)ringabout2023-10-291-3/+4
* fix isNil folding for compile time closures (#22574)metagn2023-09-021-1/+7
* replaces `doAssert false` with `raiseAssert` for unreachable branches, which ...ringabout2023-08-101-2/+1
* use strictdefs for compiler (#22365)ringabout2023-08-061-5/+23
* replaces `pairs` with `keys` and `items`; saves 8 bytes (#21319)ringabout2023-02-021-3/+3
* fix for bad error message with const in case statement (#21182)metagn2022-12-271-0/+4
* generic `define` pragma + string alias (#20979)metagn2022-12-131-26/+83
* fix #19426 compile error using when/elif/else and typedesc in template (#20550)Bung2022-10-211-0/+1
* store full definition AST for consts, fix noRewrite (#20115)metagn2022-09-281-4/+4
* move formatfloat out of system (#20195)ringabout2022-08-241-1/+1
* [semfold] fix #19199; properly fold uint to float conversion (#19890) [backport]flywind2022-06-131-1/+1
* move assertions out of system (#19599)flywind2022-03-231-0/+3
* allow `HSlice` bounded by constants of distinct types (#19219) [backport:1.2]Etan Kissling2021-12-061-8/+8
* remove exception (#18906)flywind2021-10-221-7/+1
* get rid of the warnings during bootstrapping (#18741)Miran2021-08-241-1/+1
* allow building 1.4.0 from devel (#18708)Timothee Cour2021-08-181-0/+1
* make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531)Timothee Cour2021-07-201-1/+0
* cString => cSourceString; tyCString => tyCstring so that error msgs show cstr...Timothee Cour2021-04-171-2/+2
* fixes #16076 (#17486)Andreas Rumpf2021-03-231-1/+2
* IC: next steps (#16705)Andreas Rumpf2021-01-141-97/+103
* fix #16650 (#16660)flywind2021-01-101-1/+6
* big steps torwards an efficient, simple IC implementation (#16543)Andreas Rumpf2021-01-021-2/+2
* fixes #16069; [backport:1.2] [backport:1.4] (#16115)Andreas Rumpf2020-11-241-0/+1
* Disallow nil dereference at compile time (#16032)cooldome2020-11-181-0/+4
* Semfold for nil cast (#16030)cooldome2020-11-181-1/+1
* combine PR#16009 and PR#16012 (#16024)flywind2020-11-181-1/+1
* Revert "fix #15623 (#16009)"Andrey R (cooldome)2020-11-171-1/+1
* fix #15623 (#16009)flywind2020-11-171-1/+1
* explicit ID generation for easier IC (#15559)Andreas Rumpf2020-10-251-85/+46
* fixes #15532 (#15534)Andreas Rumpf2020-10-091-0/+2
* Big compiler Cleanup (#14777)Clyybber2020-08-281-1/+1
* Deprecated laxStrings for mutating the internal zero terminator on strings an...Juan Carlos2020-06-231-2/+0
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-2/+2
* fix #14007 (#14012) [backport]cooldome2020-04-181-2/+6
* Fix semfold handling of {.str/int/bool-define.} (#13964)Oscar Nihlgård2020-04-131-0/+6
* fix last remaining warning when building nim (`intVal should be Int128`) + mi...Timothee Cour2020-04-021-23/+4
* Continue bool conversion fixing (#13751)cooldome2020-03-251-0/+9
* fixes #13661 (#13664) [backport]Andreas Rumpf2020-03-161-1/+0
* fix operators containing percent for VM usage (#13536)Arne Döring2020-03-111-2/+2
* Remove dead magics (#13551)Arne Döring2020-03-031-9/+1
* make case-object transitions explicit, make unknownLineInfo a const, replace ...Jasper Jenkins2020-01-171-1/+1
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-70/+70
* conversions to unsigned numbers are not checked anymore; implements /… (#12...Andreas Rumpf2019-11-201-4/+2
* fix deprecation warnings related to Int128 (#12474)Miran2019-10-281-47/+48
uthor Oscar Nihlgård <oscarnihlgard@gmail.com> 2018-05-02 08:54:09 +0200 committer Andreas Rumpf <rumpf_a@web.de> 2018-05-02 08:54:09 +0200 Don't hide overflow/underflow/divbyzero in semfold (#7732)' href='/ahoang/Nim/commit/compiler/semfold.nim?h=devel&id=cc0ca43743f286d93c0e4b7adddecd7bb3e83e46'>cc0ca4374 ^
a6e53ec47 ^
cc0ca4374 ^
a6e53ec47 ^
cc0ca4374 ^
a6e53ec47 ^
cc0ca4374 ^






a6e53ec47 ^
cc0ca4374 ^









a6e53ec47 ^
e25474154 ^
a6e53ec47 ^
dab64b5c0 ^

a58a2f382 ^
ed0d9e271 ^
dab64b5c0 ^

ed0d9e271 ^
dab64b5c0 ^


ed0d9e271 ^
a6e53ec47 ^
dab64b5c0 ^
ed0d9e271 ^

1a8c6fb49 ^


a6e53ec47 ^
dab64b5c0 ^

e25474154 ^
4fbba0a65 ^














a6e53ec47 ^
62a10df76 ^



a6e53ec47 ^
c69d74818 ^


62a10df76 ^






4fbba0a65 ^
a6e53ec47 ^
4fbba0a65 ^




121d4e0fc ^
4fbba0a65 ^
29357ab55 ^
afddae5aa ^
a6e53ec47 ^


ed0d9e271 ^
29357ab55 ^






ed0d9e271 ^
29357ab55 ^



ed0d9e271 ^
29357ab55 ^
279e897ea ^
29357ab55 ^


3f71b7f1f ^
29357ab55 ^


a6e53ec47 ^
e25474154 ^


a6e53ec47 ^







ab3c684c6 ^

a6e53ec47 ^
ab3c684c6 ^
a6e53ec47 ^
ab3c684c6 ^
a6e53ec47 ^
c69d74818 ^
ed0d9e271 ^
a6e53ec47 ^
cc0ca4374 ^
a6e53ec47 ^


ed0d9e271 ^
e25474154 ^
a6e53ec47 ^









c69d74818 ^
a6e53ec47 ^

c69d74818 ^
a6e53ec47 ^

658dcd2a5 ^
e25474154 ^
a6e53ec47 ^


ed0d9e271 ^
a6e53ec47 ^

658dcd2a5 ^
e25474154 ^
a6e53ec47 ^


b4084df43 ^
a6e53ec47 ^






ed0d9e271 ^

a6e53ec47 ^


ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^

ed0d9e271 ^
a6e53ec47 ^


47114342c ^
a6e53ec47 ^
47114342c ^
a6e53ec47 ^
47114342c ^
a6e53ec47 ^






ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^










ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^

ed0d9e271 ^
e25474154 ^

ed0d9e271 ^
e25474154 ^

ed0d9e271 ^
e25474154 ^

a6e53ec47 ^

42516c008 ^

fab8cee13 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^


ed0d9e271 ^

a6e53ec47 ^

38040e769 ^




a6e53ec47 ^
38040e769 ^
a6e53ec47 ^
7063670a2 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^

866572e2e ^
a6e53ec47 ^
866572e2e ^
92b8fac94 ^
a6e53ec47 ^
47dce2688 ^

a6e53ec47 ^
14354b436 ^
ed0d9e271 ^
a6e53ec47 ^
e25474154 ^
ed0d9e271 ^
7063670a2 ^
2afadc5c9 ^
a6e53ec47 ^
7063670a2 ^
ed0d9e271 ^

a6e53ec47 ^
ed0d9e271 ^
2afadc5c9 ^
a6e53ec47 ^

2afadc5c9 ^
5bf31fcab ^
e25474154 ^

ed0d9e271 ^
e25474154 ^
e2d38a57e ^
0cc7c9a13 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^
e2d38a57e ^

a6e53ec47 ^

ed0d9e271 ^
a6e53ec47 ^
c5d8a5c1d ^
7d6de1cf9 ^

a6e53ec47 ^
96b828a38 ^
ed0d9e271 ^

a6e53ec47 ^
ed0d9e271 ^

a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
cdf03b06b ^
a6e53ec47 ^
c617479c6 ^
a6e53ec47 ^
cdf03b06b ^
a6e53ec47 ^
cdf03b06b ^
a6e53ec47 ^
c617479c6 ^
a6e53ec47 ^
2c1f1f21b ^





a6e53ec47 ^
3cb3813ee ^

a6e53ec47 ^
36247e094 ^
5c7e3efbc ^
a7a2fa63a ^
5c7e3efbc ^
3cb3813ee ^
a6e53ec47 ^

ed0d9e271 ^
5c7e3efbc ^

c2df609cd ^
a6e53ec47 ^
3cb3813ee ^
5c7e3efbc ^
ed0d9e271 ^
a6e53ec47 ^
3cb3813ee ^
5c7e3efbc ^

ed0d9e271 ^
29357ab55 ^
ed0d9e271 ^
5c7e3efbc ^
e23857a98 ^
ed0d9e271 ^
a6e53ec47 ^
299390a58 ^


a6e53ec47 ^
299390a58 ^
ed0d9e271 ^
a6e53ec47 ^

e4081a720 ^
e6c5622aa ^
ed0d9e271 ^
a6e53ec47 ^
299390a58 ^
ed0d9e271 ^
299390a58 ^

47335aab4 ^
678f3d7f5 ^
299390a58 ^


a6e53ec47 ^
678f3d7f5 ^


a6e53ec47 ^
678f3d7f5 ^
299390a58 ^
ed0d9e271 ^
299390a58 ^
a6e53ec47 ^
73c6efdf6 ^
ed0d9e271 ^
a6e53ec47 ^
29357ab55 ^
ed0d9e271 ^
a6e53ec47 ^
299390a58 ^
a6e53ec47 ^
47335aab4 ^
299390a58 ^

225d65701 ^
299390a58 ^





ed0d9e271 ^
299390a58 ^

a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ccd58fba2 ^

ed0d9e271 ^
a6e53ec47 ^
ccd58fba2 ^

78b27ed7f ^


cd0256136 ^




78b27ed7f ^
a6e53ec47 ^
e25474154 ^
262aafa0a ^












e25474154 ^
ed0d9e271 ^
7063670a2 ^
fee2a7ecf ^

a6e53ec47 ^
fee2a7ecf ^
e25474154 ^
a6e53ec47 ^
262aafa0a ^
a6e53ec47 ^
262aafa0a ^
a6e53ec47 ^









94d1aa510 ^
a6e53ec47 ^




94d1aa510 ^
a6e53ec47 ^

145fabeb6 ^
7d62f031f ^
a6e53ec47 ^
e25474154 ^
fee2a7ecf ^
aebe9d7d1 ^



fee2a7ecf ^
027f30610 ^
24966e006 ^
66a255652 ^
24966e006 ^


fee2a7ecf ^

29357ab55 ^
ed0d9e271 ^
e25474154 ^
ed0d9e271 ^
a6e53ec47 ^
16a51ffc9 ^
ed0d9e271 ^
7063670a2 ^
1a61c4d46 ^
05cffb937 ^
e25474154 ^
05cffb937 ^
29357ab55 ^

05cffb937 ^
7063670a2 ^
ed0d9e271 ^
a6e53ec47 ^
5b28d0820 ^
61181702d ^
5b0d8246f ^

a6e53ec47 ^
5b0d8246f ^
02e8e9c3e ^
7063670a2 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
5ecc461a9 ^

a6e53ec47 ^
42516c008 ^
a6e53ec47 ^
42516c008 ^
ed0d9e271 ^
a6e53ec47 ^
96b828a38 ^
a6e53ec47 ^
299390a58 ^
ed0d9e271 ^
a6e53ec47 ^
96b828a38 ^
a6e53ec47 ^
b1d4dfa6b ^


a6e53ec47 ^
70cf34cbd ^
a6e53ec47 ^
ccd58fba2 ^
a6e53ec47 ^
29357ab55 ^
a6e53ec47 ^
29357ab55 ^

72651de71 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^

ed0d9e271 ^
e25474154 ^
ed0d9e271 ^
a6e53ec47 ^
7063670a2 ^
e25474154 ^

ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^


ed0d9e271 ^
e25474154 ^
ed0d9e271 ^
a6e53ec47 ^
7063670a2 ^
e25474154 ^

e61d8166c ^






47335aab4 ^
e25474154 ^

ed0d9e271 ^

a6e53ec47 ^
7063670a2 ^
e25474154 ^
ed0d9e271 ^

a6e53ec47 ^
7063670a2 ^
e25474154 ^

ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^

e25474154 ^

ed0d9e271 ^
a6e53ec47 ^


ed0d9e271 ^
a6e53ec47 ^
ed0d9e271 ^
e25474154 ^

ed0d9e271 ^
a6e53ec47 ^
3cb3813ee ^
a6e53ec47 ^
38ed2373a ^
a6e53ec47 ^
38ed2373a ^
a88a965c6 ^
38ed2373a ^


a6e53ec47 ^

ee67a67ac ^

a6e53ec47 ^
299390a58 ^
29357ab55 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728