2018-11-15 15:43:04 +03:00
|
|
|
var a, b, c, d, e;
|
2019-02-26 07:56:58 +03:00
|
|
|
// compress these
|
2018-10-25 07:17:05 +03:00
|
|
|
if (b) {
|
|
|
|
a = 1 + 2;
|
|
|
|
} else {
|
|
|
|
a = 3;
|
|
|
|
}
|
|
|
|
if (b) {
|
|
|
|
a = 4 + 5;
|
|
|
|
} else if (c) {
|
|
|
|
a = 6;
|
|
|
|
} else {
|
|
|
|
a = 7 - 8;
|
|
|
|
}
|
|
|
|
a = b ? 'f' : 'g' + 'h';
|
|
|
|
a = b ? 'f' : b ? 'f' : 'g' + 'h';
|
2019-02-26 07:56:58 +03:00
|
|
|
// Compress conditions that have side effects
|
2018-10-25 07:17:05 +03:00
|
|
|
if (i()) {
|
|
|
|
a = 9 + 10;
|
|
|
|
} else {
|
|
|
|
a = 11;
|
|
|
|
}
|
|
|
|
if (c) {
|
|
|
|
a = 'j';
|
|
|
|
} else if (i()) {
|
|
|
|
a = 'k' + 'l';
|
|
|
|
} else {
|
|
|
|
a = 'j';
|
|
|
|
}
|
|
|
|
a = i() ? 'm' : 'f' + 'n';
|
2019-02-26 07:56:58 +03:00
|
|
|
// don't compress these
|
2018-10-25 07:17:05 +03:00
|
|
|
a = b ? d : e;
|
|
|
|
a = b ? 'f' : 'g';
|