Polly
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
i
l
m
p
r
s
v
Enumerations
Enumerator
Related Functions
a
d
f
l
m
s
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
f
i
m
o
r
s
t
Enumerations
a
g
i
m
o
t
Enumerator
i
m
o
t
v
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
llvm-project
polly
lib
External
isl
imath
tests
bug-swap.c
Go to the documentation of this file.
1
/* Regression test for mp_int_swap() bug on self-stored values. */
2
#include <stdio.h>
3
#include "imath.h"
4
5
int
main
(
int
argc,
char
* argv[]) {
6
mpz_t
a
,
b
;
7
int
result
;
8
9
mp_int_init_value
(&
a
, 1);
10
mp_int_init_value
(&
b
, 16);
11
12
mp_int_swap
(&
a
, &
b
);
13
result
= (
a
.digits == &(
a
.single) &&
b
.digits == &(
b
.single) &&
14
a
.digits[0] == 16 &&
b
.digits[0] == 1);
15
16
printf(
"REGRESSION: mp_int_swap() on self-stored values: %s\n"
,
17
result
?
"OK"
:
"FAILED"
);
18
19
mp_int_clear
(&
b
);
20
mp_int_clear
(&
a
);
21
return
!
result
;
22
}
result
polly print import Polly Print Scop import result
Definition:
JSONExporter.cpp:881
main
int main()
Definition:
isl_test_cpp-checked-conversion.cc:88
a
a(0)
b
b(9)
mpz_t
Definition:
imath/imath.h:58
mp_int_clear
#define mp_int_clear
Definition:
wrap.h:72
mp_int_swap
#define mp_int_swap
Definition:
wrap.h:119
mp_int_init_value
#define mp_int_init_value
Definition:
wrap.h:98
Generated on Thu Apr 17 2025 10:39:28 for Polly by
1.9.6