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
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
lia2pb_tactic.h
Author:
Leonardo de Moura (leonardo) 2012-02-07.
Tactic Documentation:
## Tactic lia2pb
### Short Description
Reduce bounded LIA benchmark into 0-1 LIA benchmark.
### Example
```z3
(declare-const x Int)
(declare-const y Int)
(assert (<= 0 x))
(assert (<= x 5))
(assert (<= 0 y))
(assert (<= y 5))
(assert (>= (+ (* 2 x) y) 5))
(apply lia2pb)
```
--*/
#pragma once
#include "util/params.h"
#include "tactic/tactic.h"
class ast_manager;
class tactic;
tactic * mk_lia2pb_tactic(ast_manager & m, params_ref const & p = params_ref());
Z3_ADD_TACTIC(lia2pb, "lia2pb", "convert bounded integer variables into a sequence of 0-1 variables.", mk_lia2pb_tactic(m, p));